Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
31b5a1b5
Commit
31b5a1b5
authored
Jul 29, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HLS: fix error in
d781f87d
and simplify
Close #7240
parent
bb2d9d9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+5
-4
No files found.
modules/stream_filter/httplive.c
View file @
31b5a1b5
...
...
@@ -1280,6 +1280,7 @@ static int hls_UpdatePlaylist(stream_t *s, hls_stream_t *hls_new, hls_stream_t *
msg_Info
(
s
,
"updating hls stream (program-id=%d, bandwidth=%"
PRIu64
") has %d segments"
,
hls_new
->
id
,
hls_new
->
bandwidth
,
count
);
vlc_mutex_lock
(
&
hls_old
->
lock
);
for
(
int
n
=
0
;
n
<
count
;
n
++
)
{
segment_t
*
p
=
segment_GetSegment
(
hls_new
,
n
);
...
...
@@ -1333,7 +1334,10 @@ static int hls_UpdatePlaylist(stream_t *s, hls_stream_t *hls_new, hls_stream_t *
{
int
last
=
vlc_array_count
(
hls_old
->
segments
)
-
1
;
segment_t
*
l
=
segment_GetSegment
(
hls_old
,
last
);
if
(
l
==
NULL
)
assert
(
0
);
if
(
l
==
NULL
)
{
vlc_mutex_unlock
(
&
hls_old
->
lock
);
return
VLC_EGENERIC
;
}
if
((
l
->
sequence
+
1
)
!=
p
->
sequence
)
{
...
...
@@ -1352,9 +1356,6 @@ static int hls_UpdatePlaylist(stream_t *s, hls_stream_t *hls_new, hls_stream_t *
vlc_mutex_unlock
(
&
hls_old
->
lock
);
return
VLC_SUCCESS
;
fail_and_unlock:
vlc_mutex_unlock
(
&
hls_old
->
lock
);
return
VLC_EGENERIC
;
}
static
int
hls_ReloadPlaylist
(
stream_t
*
s
)
...
...
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