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
1090a5b5
Commit
1090a5b5
authored
Jul 10, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove compiler warning and clean up (refs #258)
parent
11558099
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
modules/access/http.c
modules/access/http.c
+11
-17
No files found.
modules/access/http.c
View file @
1090a5b5
...
...
@@ -598,37 +598,31 @@ static int ReadICYMeta( access_t *p_access )
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
uint8_t
buffer
[
1
]
;
char
*
psz_meta
;
uint8_t
buffer
;
char
*
p
,
*
p
sz_meta
;
int
i_read
;
char
*
p
;
/* Read meta data length */
i_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
p_sys
->
p_vs
,
buffer
,
1
,
i_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
p_sys
->
p_vs
,
&
buffer
,
1
,
VLC_TRUE
);
if
(
i_read
<=
0
)
if
(
(
i_read
<=
0
)
||
(
buffer
==
0
)
)
return
VLC_EGENERIC
;
i_read
=
buffer
<<
4
;
msg_Dbg
(
p_access
,
"ICY meta size=%u"
,
i_read
);
if
(
buffer
[
0
]
<=
0
)
return
VLC_SUCCESS
;
msg_Dbg
(
p_access
,
"ICY meta size=%d"
,
buffer
[
0
]
*
16
);
psz_meta
=
malloc
(
buffer
[
0
]
*
16
+
1
);
i_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
p_sys
->
p_vs
,
psz_meta
,
buffer
[
0
]
*
16
,
VLC_TRUE
);
if
(
i_read
!=
buffer
[
0
]
*
16
)
psz_meta
=
malloc
(
i_read
+
1
);
if
(
net_Read
(
p_access
,
p_sys
->
fd
,
p_sys
->
p_vs
,
(
uint8_t
*
)
psz_meta
,
i_read
,
VLC_TRUE
)
!=
i_read
)
return
VLC_EGENERIC
;
psz_meta
[
buffer
[
0
]
*
16
]
=
'\0'
;
/* Just in case */
psz_meta
[
i_read
]
=
'\0'
;
/* Just in case */
msg_Dbg
(
p_access
,
"icy-meta=%s"
,
psz_meta
);
/* Now parse the meta */
/* Look for StreamTitle= */
p
=
strcasestr
(
psz_meta
,
"StreamTitle="
);
p
=
strcasestr
(
(
char
*
)
psz_meta
,
"StreamTitle="
);
if
(
p
)
{
p
+=
strlen
(
"StreamTitle="
);
...
...
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