Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7aca939a
Commit
7aca939a
authored
Oct 09, 2008
by
Sebastien Escudier
Committed by
Rémi Denis-Courmont
Oct 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live555 timeout prevention thread fixes
Signed-off-by:
Rémi Denis-Courmont
<
rdenis@simphalempin.com
>
parent
e3db7651
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
modules/demux/live555.cpp
modules/demux/live555.cpp
+20
-13
No files found.
modules/demux/live555.cpp
View file @
7aca939a
...
...
@@ -407,15 +407,15 @@ error:
if
(
p_sys
->
i_track
)
free
(
p_sys
->
track
);
if
(
p_sys
->
p_out_asf
)
stream_DemuxDelete
(
p_sys
->
p_out_asf
);
if
(
p_sys
->
rtsp
&&
p_sys
->
ms
)
p_sys
->
rtsp
->
teardownMediaSession
(
*
p_sys
->
ms
);
if
(
p_sys
->
ms
)
Medium
::
close
(
p_sys
->
ms
);
if
(
p_sys
->
rtsp
)
RTSPClient
::
close
(
p_sys
->
rtsp
);
if
(
p_sys
->
env
)
p_sys
->
env
->
reclaim
();
if
(
p_sys
->
p_timeout
)
{
vlc_cancel
(
p_sys
->
p_timeout
->
handle
);
vlc_join
(
p_sys
->
p_timeout
->
handle
,
NULL
);
free
(
p_sys
->
p_timeout
);
}
if
(
p_sys
->
ms
)
Medium
::
close
(
p_sys
->
ms
);
if
(
p_sys
->
rtsp
)
RTSPClient
::
close
(
p_sys
->
rtsp
);
if
(
p_sys
->
env
)
p_sys
->
env
->
reclaim
();
delete
p_sys
->
scheduler
;
free
(
p_sys
->
p_sdp
);
free
(
p_sys
->
psz_path
);
...
...
@@ -448,15 +448,15 @@ static void Close( vlc_object_t *p_this )
if
(
p_sys
->
i_track
)
free
(
p_sys
->
track
);
if
(
p_sys
->
p_out_asf
)
stream_DemuxDelete
(
p_sys
->
p_out_asf
);
if
(
p_sys
->
rtsp
&&
p_sys
->
ms
)
p_sys
->
rtsp
->
teardownMediaSession
(
*
p_sys
->
ms
);
if
(
p_sys
->
ms
)
Medium
::
close
(
p_sys
->
ms
);
if
(
p_sys
->
rtsp
)
RTSPClient
::
close
(
p_sys
->
rtsp
);
if
(
p_sys
->
env
)
p_sys
->
env
->
reclaim
();
if
(
p_sys
->
p_timeout
)
{
vlc_cancel
(
p_sys
->
p_timeout
->
handle
);
vlc_join
(
p_sys
->
p_timeout
->
handle
,
NULL
);
free
(
p_sys
->
p_timeout
);
}
if
(
p_sys
->
ms
)
Medium
::
close
(
p_sys
->
ms
);
if
(
p_sys
->
rtsp
)
RTSPClient
::
close
(
p_sys
->
rtsp
);
if
(
p_sys
->
env
)
p_sys
->
env
->
reclaim
();
delete
p_sys
->
scheduler
;
free
(
p_sys
->
p_sdp
);
free
(
p_sys
->
psz_path
);
...
...
@@ -1042,6 +1042,9 @@ static int Play( demux_t *p_demux )
{
msg_Dbg
(
p_demux
,
"We have a timeout of %d seconds"
,
p_sys
->
i_timeout
);
p_sys
->
p_timeout
=
(
timeout_thread_t
*
)
malloc
(
sizeof
(
timeout_thread_t
)
);
if
(
p_sys
->
p_timeout
)
{
memset
(
p_sys
->
p_timeout
,
0
,
sizeof
(
timeout_thread_t
)
);
p_sys
->
p_timeout
->
p_sys
=
p_demux
->
p_sys
;
/* lol, object recursion :D */
if
(
vlc_clone
(
&
p_sys
->
p_timeout
->
handle
,
TimeoutPrevention
,
p_sys
->
p_timeout
,
VLC_THREAD_PRIORITY_LOW
)
)
...
...
@@ -1050,8 +1053,12 @@ static int Play( demux_t *p_demux )
free
(
p_sys
->
p_timeout
);
p_sys
->
p_timeout
=
NULL
;
}
else
msg_Dbg
(
p_demux
,
"spawned timeout thread"
);
}
else
msg_Err
(
p_demux
,
"cannot spawn liveMedia timeout thread"
);
}
}
p_sys
->
i_pcr
=
0
;
...
...
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