Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
bda0ca39
Commit
bda0ca39
authored
Oct 13, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter: httplive.c: cleanup
Cleanup
parent
01d9ee7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
33 deletions
+35
-33
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+35
-33
No files found.
modules/stream_filter/httplive.c
View file @
bda0ca39
...
...
@@ -72,15 +72,16 @@ typedef struct segment_s
typedef
struct
hls_stream_s
{
int
id
;
/* program id */
uint64_t
bandwidth
;
/* bandwidth usage of segments (kbps)*/
int
version
;
/* protocol version should be 1 */
int
sequence
;
/* media sequence number */
int
duration
;
/* maximum duration per segment (ms) */
int
segment
;
/* current segment downloading */
uint64_t
bandwidth
;
/* bandwidth usage of segments (kbps)*/
vlc_array_t
*
segments
;
/* list of segments */
int
segment
;
/* current segment downloading */
vlc_mutex_t
lock
;
vlc_url_t
url
;
/* uri to m3u8 */
vlc_mutex_t
lock
;
bool
b_cache
;
/* allow caching */
}
hls_stream_t
;
...
...
@@ -89,8 +90,8 @@ typedef struct
VLC_COMMON_MEMBERS
/* */
vlc_array_t
*
hls_stream
;
/* bandwidth adaptation */
int
current
;
/* current hls_stream */
vlc_array_t
*
hls_stream
;
/* bandwidth adaptation */
stream_t
*
s
;
}
hls_thread_t
;
...
...
@@ -353,7 +354,8 @@ static void parse_StreamInformation(stream_t *s, char *p_read, char *uri)
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
int
id
,
bw
;
int
id
;
uint64_t
bw
;
char
*
attr
;
attr
=
parse_Attributes
(
p_read
,
"PROGRAM-ID"
);
...
...
@@ -383,7 +385,7 @@ static void parse_StreamInformation(stream_t *s, char *p_read, char *uri)
return
;
}
msg_Info
(
s
,
"bandwidth adaption detected (program-id=%d, bandwidth=%
d
)."
,
id
,
bw
);
msg_Info
(
s
,
"bandwidth adaption detected (program-id=%d, bandwidth=%
"
PRIu64
"
)."
,
id
,
bw
);
hls_stream_t
*
hls
=
hls_New
(
p_sys
->
hls_stream
,
id
,
bw
,
uri
);
if
(
hls
==
NULL
)
...
...
@@ -904,8 +906,9 @@ static int AccessOpen(stream_t *s, vlc_url_t *url)
return
VLC_EGENERIC
;
p_sys
->
p_access
=
vlc_object_create
(
s
,
sizeof
(
access_t
));
if
(
p_sys
->
p_access
)
{
if
(
p_sys
->
p_access
==
NULL
)
return
VLC_ENOMEM
;
p_sys
->
p_access
->
psz_access
=
strdup
(
url
->
psz_protocol
);
p_sys
->
p_access
->
psz_filepath
=
strdup
(
url
->
psz_path
);
if
(
url
->
psz_password
||
url
->
psz_username
)
...
...
@@ -935,9 +938,8 @@ static int AccessOpen(stream_t *s, vlc_url_t *url)
msg_Err
(
s
,
"could not load http access module"
);
goto
fail
;
}
return
VLC_SUCCESS
;
}
return
VLC_ENOMEM
;
fail:
vlc_object_release
(
p_sys
->
p_access
);
...
...
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