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
f3b30afc
Commit
f3b30afc
authored
Jun 05, 2013
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
livehttp: check opendts to be lowest dts available
parent
d00d1822
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/access_output/livehttp.c
modules/access_output/livehttp.c
+5
-0
No files found.
modules/access_output/livehttp.c
View file @
f3b30afc
...
...
@@ -236,6 +236,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
segments_t
=
vlc_array_new
();
p_sys
->
stuffing_size
=
0
;
p_sys
->
i_opendts
=
VLC_TS_INVALID
;
p_sys
->
psz_indexPath
=
NULL
;
psz_idx
=
var_GetNonEmptyString
(
p_access
,
SOUT_CFG_PREFIX
"index"
);
...
...
@@ -897,6 +898,10 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
if
(
p_sys
->
i_handle
<
0
)
{
p_sys
->
i_opendts
=
output
?
output
->
i_dts
:
p_buffer
->
i_dts
;
//For first segment we can get negative duration otherwise...?
if
(
(
p_sys
->
i_opendts
!=
VLC_TS_INVALID
)
&&
(
p_buffer
->
i_dts
<
p_sys
->
i_opendts
)
)
p_sys
->
i_opendts
=
p_buffer
->
i_dts
;
if
(
openNextFile
(
p_access
,
p_sys
)
<
0
)
return
-
1
;
}
...
...
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