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
37164e21
Commit
37164e21
authored
Dec 28, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter/httplive.c: cleanup parse_StreamInformation()
Cleanup parse_StreamInformation() function.
parent
90c85095
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+4
-3
No files found.
modules/stream_filter/httplive.c
View file @
37164e21
...
...
@@ -404,7 +404,8 @@ static void parse_TargetDuration(stream_t *s, hls_stream_t *hls, char *p_read)
hls
->
duration
=
duration
;
/* seconds */
}
static
void
parse_StreamInformation
(
stream_t
*
s
,
char
*
p_read
,
char
*
uri
)
static
void
parse_StreamInformation
(
stream_t
*
s
,
vlc_array_t
**
hls_stream
,
char
*
p_read
,
char
*
uri
)
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
...
...
@@ -444,7 +445,7 @@ static void parse_StreamInformation(stream_t *s, char *p_read, char *uri)
char
*
psz_uri
=
NULL
;
psz_uri
=
relative_URI
(
s
,
uri
,
psz_uri
);
hls_stream_t
*
hls
=
hls_New
(
p_sys
->
hls_stream
,
id
,
bw
,
psz_uri
?
psz_uri
:
uri
);
hls_stream_t
*
hls
=
hls_New
(
*
hls_stream
,
id
,
bw
,
psz_uri
?
psz_uri
:
uri
);
if
(
hls
==
NULL
)
p_sys
->
b_error
=
true
;
...
...
@@ -730,7 +731,7 @@ static int parse_HTTPLiveStreaming(stream_t *s)
p_sys
->
b_error
=
true
;
else
{
parse_StreamInformation
(
s
,
p_read
,
uri
);
parse_StreamInformation
(
s
,
&
p_sys
->
hls_stream
,
p_read
,
uri
);
free
(
uri
);
}
}
...
...
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