Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
494dbf11
Commit
494dbf11
authored
Jan 28, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live555: privatize b_error (and remove useless checks)
parent
d147f145
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/demux/live555.cpp
modules/demux/live555.cpp
+7
-5
No files found.
modules/demux/live555.cpp
View file @
494dbf11
...
...
@@ -224,6 +224,7 @@ struct demux_sys_t
bool
b_get_param
;
/* Does the server support GET_PARAMETER */
bool
b_paused
;
/* Are we paused? */
bool
b_error
;
float
f_seek_request
;
/* In case we receive a seek request while paused*/
};
...
...
@@ -306,6 +307,7 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
b_get_param
=
false
;
p_sys
->
b_paused
=
false
;
p_sys
->
f_seek_request
=
-
1
;
p_sys
->
b_error
=
false
;
/* parse URL for rtsp://[user:[passwd]@]serverip:port/options */
vlc_UrlParse
(
&
p_sys
->
url
,
p_sys
->
psz_path
,
0
);
...
...
@@ -345,7 +347,7 @@ static int Open ( vlc_object_t *p_this )
int
i_read
=
stream_Read
(
p_demux
->
s
,
&
p_sdp
[
i_sdp
],
i_sdp_max
-
i_sdp
-
1
);
if
(
!
vlc_object_alive
(
p_demux
)
||
p_demux
->
b_error
)
if
(
!
vlc_object_alive
(
p_demux
)
)
{
free
(
p_sdp
);
goto
error
;
...
...
@@ -503,7 +505,7 @@ static int Connect( demux_t *p_demux )
}
createnew:
if
(
!
vlc_object_alive
(
p_demux
)
||
p_demux
->
b_error
)
if
(
!
vlc_object_alive
(
p_demux
)
)
{
i_ret
=
VLC_EGENERIC
;
goto
bailout
;
...
...
@@ -674,7 +676,7 @@ static int SessionsSetup( demux_t *p_demux )
Boolean
bInit
;
live_track_t
*
tk
;
if
(
!
vlc_object_alive
(
p_demux
)
||
p_demux
->
b_error
)
if
(
!
vlc_object_alive
(
p_demux
)
)
{
delete
iter
;
return
VLC_EGENERIC
;
...
...
@@ -1227,7 +1229,7 @@ static int Demux( demux_t *p_demux )
msg_Warn
(
p_demux
,
"no data received in 10s, eof ?"
);
return
0
;
}
return
p_
demux
->
b_error
?
0
:
1
;
return
p_
sys
->
b_error
?
0
:
1
;
}
/*****************************************************************************
...
...
@@ -1778,7 +1780,7 @@ static void StreamClose( void *p_private )
msg_Dbg
(
p_demux
,
"StreamClose"
);
p_sys
->
event
=
0xff
;
p_
demux
->
b_error
=
true
;
p_
sys
->
b_error
=
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment