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
50b0a07a
Commit
50b0a07a
authored
Dec 14, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "stream_filter/httplive.c: Better length calculation (WIP)"
This reverts commit
da2b1252
.
parent
80fbf19e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+4
-4
No files found.
modules/stream_filter/httplive.c
View file @
50b0a07a
...
...
@@ -61,7 +61,7 @@ vlc_module_end()
typedef
struct
segment_s
{
int
sequence
;
/* unique sequence number */
mtime_t
length
;
/* segment duration (ms) */
int
length
;
/* segment duration (ms) */
uint64_t
size
;
/* segment size in bytes */
vlc_url_t
url
;
...
...
@@ -239,7 +239,7 @@ static segment_t *segment_New(hls_stream_t* hls, int duration, char *uri)
if
(
segment
==
NULL
)
return
NULL
;
segment
->
length
=
duration
*
INT64_C
(
1000000
);
segment
->
length
=
duration
;
/* seconds */
segment
->
size
=
0
;
/* bytes */
segment
->
sequence
=
0
;
vlc_UrlParse
(
&
segment
->
url
,
uri
,
0
);
...
...
@@ -774,7 +774,7 @@ static int parse_HTTPLiveStreaming(stream_t *s)
for
(
int
i
=
0
;
i
<
num
;
i
++
)
{
segment_t
*
segment
=
segment_GetSegment
(
hls
,
i
);
if
(
segment
&&
segment
->
length
>=
(
hls
->
duration
*
INT64_C
(
1000000
))
)
if
(
segment
&&
segment
->
length
>=
hls
->
duration
)
ok
++
;
}
if
(
ok
<
3
)
...
...
@@ -947,7 +947,7 @@ static int Prefetch(stream_t *s, int *current)
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
hls_stream_t
*
hls
=
hls_Get
(
p_sys
->
hls_stream
,
*
current
);
hls_stream_t
*
hls
=
hls_Get
(
p_sys
->
hls_stream
,
current
);
if
(
hls
==
NULL
)
return
VLC_EGENERIC
;
...
...
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