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
78baddd0
Commit
78baddd0
authored
May 30, 2012
by
Chris Smowton
Committed by
Jean-Baptiste Kempf
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't reset current HLS segment playback pointer on a failed seek
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
7e21f34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+9
-7
No files found.
modules/stream_filter/httplive.c
View file @
78baddd0
...
...
@@ -2354,16 +2354,12 @@ static int segment_Seek(stream_t *s, const uint64_t pos)
uint64_t
size
=
hls
->
size
;
int
count
=
vlc_array_count
(
hls
->
segments
);
/* restore current segment to start position */
segment_t
*
segment
=
segment_GetSegment
(
hls
,
p_sys
->
playback
.
segment
);
if
(
segment
==
NULL
)
segment_t
*
currentSegment
=
segment_GetSegment
(
hls
,
p_sys
->
playback
.
segment
);
if
(
currentSegment
==
NULL
)
{
vlc_mutex_unlock
(
&
hls
->
lock
);
return
VLC_EGENERIC
;
}
vlc_mutex_lock
(
&
segment
->
lock
);
segment_RestorePos
(
segment
);
vlc_mutex_unlock
(
&
segment
->
lock
);
for
(
int
n
=
0
;
n
<
count
;
n
++
)
{
...
...
@@ -2402,7 +2398,13 @@ static int segment_Seek(stream_t *s, const uint64_t pos)
/* */
if
(
b_found
)
{
/* restore segment to start position */
/* restore current segment to start position */
vlc_mutex_lock
(
&
currentSegment
->
lock
);
segment_RestorePos
(
currentSegment
);
vlc_mutex_unlock
(
&
currentSegment
->
lock
);
/* restore seeked segment to start position */
segment_t
*
segment
=
segment_GetSegment
(
hls
,
p_sys
->
playback
.
segment
);
if
(
segment
==
NULL
)
{
...
...
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