Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
348b1785
Commit
348b1785
authored
Jan 25, 2012
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hls: Adding missing locks.
parent
285098dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+6
-0
No files found.
modules/stream_filter/httplive.c
View file @
348b1785
...
...
@@ -2112,13 +2112,16 @@ static segment_t *GetSegment(stream_t *s)
segment
=
segment_GetSegment
(
hls
,
p_sys
->
playback
.
segment
);
if
(
segment
!=
NULL
)
{
vlc_mutex_lock
(
&
segment
->
lock
);
/* This segment is ready? */
if
(
segment
->
data
!=
NULL
)
{
vlc_mutex_unlock
(
&
segment
->
lock
);
p_sys
->
b_cache
=
hls
->
b_cache
;
vlc_mutex_unlock
(
&
hls
->
lock
);
goto
check
;
}
vlc_mutex_unlock
(
&
segment
->
lock
);
}
vlc_mutex_unlock
(
&
hls
->
lock
);
}
...
...
@@ -2144,15 +2147,18 @@ static segment_t *GetSegment(stream_t *s)
int
i_segment
=
p_sys
->
download
.
segment
;
vlc_mutex_unlock
(
&
p_sys
->
download
.
lock_wait
);
vlc_mutex_lock
(
&
segment
->
lock
);
/* This segment is ready? */
if
((
segment
->
data
!=
NULL
)
&&
(
p_sys
->
playback
.
segment
<
i_segment
))
{
p_sys
->
playback
.
stream
=
i_stream
;
p_sys
->
b_cache
=
hls
->
b_cache
;
vlc_mutex_unlock
(
&
segment
->
lock
);
vlc_mutex_unlock
(
&
hls
->
lock
);
goto
check
;
}
vlc_mutex_unlock
(
&
segment
->
lock
);
vlc_mutex_unlock
(
&
hls
->
lock
);
if
(
!
p_sys
->
b_meta
)
...
...
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