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
0307c51e
Commit
0307c51e
authored
Mar 04, 2012
by
Chris Smowton
Committed by
Hugo Beauzée-Luyssen
Mar 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hls: Fixing backward seek
Fixes #6261 Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
7573128a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+3
-5
No files found.
modules/stream_filter/httplive.c
View file @
0307c51e
...
@@ -2392,14 +2392,12 @@ static int segment_Seek(stream_t *s, const uint64_t pos)
...
@@ -2392,14 +2392,12 @@ static int segment_Seek(stream_t *s, const uint64_t pos)
vlc_mutex_lock
(
&
p_sys
->
download
.
lock_wait
);
vlc_mutex_lock
(
&
p_sys
->
download
.
lock_wait
);
p_sys
->
download
.
seek
=
p_sys
->
playback
.
segment
;
p_sys
->
download
.
seek
=
p_sys
->
playback
.
segment
;
vlc_cond_signal
(
&
p_sys
->
download
.
wait
);
vlc_cond_signal
(
&
p_sys
->
download
.
wait
);
vlc_mutex_unlock
(
&
p_sys
->
download
.
lock_wait
);
/* Wait for download to be finished */
/* Wait for download to be finished */
vlc_mutex_lock
(
&
p_sys
->
download
.
lock_wait
);
msg_Info
(
s
,
"seek to segment %d"
,
p_sys
->
playback
.
segment
);
msg_Info
(
s
,
"seek to segment %d"
,
p_sys
->
playback
.
segment
);
while
((
(
p_sys
->
download
.
seek
!=
-
1
)
||
while
((
p_sys
->
download
.
seek
!=
-
1
)
||
(
p_sys
->
download
.
segment
-
p_sys
->
playback
.
segment
<
3
)
)
&&
((
p_sys
->
download
.
segment
-
p_sys
->
playback
.
segment
<
3
)
&&
(
p_sys
->
download
.
segment
<
(
count
-
6
)))
(
p_sys
->
download
.
segment
<
count
)))
{
{
vlc_cond_wait
(
&
p_sys
->
download
.
wait
,
&
p_sys
->
download
.
lock_wait
);
vlc_cond_wait
(
&
p_sys
->
download
.
wait
,
&
p_sys
->
download
.
lock_wait
);
if
(
!
vlc_object_alive
(
s
)
||
s
->
b_error
)
break
;
if
(
!
vlc_object_alive
(
s
)
||
s
->
b_error
)
break
;
...
...
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