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
32e19b17
Commit
32e19b17
authored
Feb 28, 2013
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
livehttp: take block length in account when checking segment length
parent
b82c5233
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/access_output/livehttp.c
modules/access_output/livehttp.c
+4
-1
No files found.
modules/access_output/livehttp.c
View file @
32e19b17
...
@@ -456,7 +456,10 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
...
@@ -456,7 +456,10 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
p_sys
->
block_buffer
=
NULL
;
p_sys
->
block_buffer
=
NULL
;
if
(
p_sys
->
i_handle
>
0
&&
(
p_buffer
->
i_dts
-
p_sys
->
i_opendts
)
>=
p_sys
->
i_seglenm
)
if
(
p_sys
->
i_handle
>
0
&&
(
p_buffer
->
i_dts
-
p_sys
->
i_opendts
+
p_buffer
->
i_length
*
CLOCK_FREQ
/
INT64_C
(
1000000
)
)
>=
p_sys
->
i_seglenm
)
closeCurrentSegment
(
p_access
,
p_sys
,
false
);
closeCurrentSegment
(
p_access
,
p_sys
,
false
);
if
(
p_sys
->
i_handle
<
0
)
if
(
p_sys
->
i_handle
<
0
)
...
...
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