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
10ca561a
Commit
10ca561a
authored
Jun 15, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
f2f15f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+6
-7
No files found.
modules/demux/playlist/m3u.c
View file @
10ca561a
...
@@ -73,9 +73,8 @@ int Import_M3U( vlc_object_t *p_this )
...
@@ -73,9 +73,8 @@ int Import_M3U( vlc_object_t *p_this )
static
bool
ContainsURL
(
demux_t
*
p_demux
)
static
bool
ContainsURL
(
demux_t
*
p_demux
)
{
{
uint8_t
*
p_peek
;
const
uint8_t
*
p_peek
,
*
p_peek_end
;
int
i_peek
;
int
i_peek
;
uint8_t
*
p_peek_end
;
i_peek
=
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
1024
);
i_peek
=
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
1024
);
if
(
i_peek
<=
0
)
return
false
;
if
(
i_peek
<=
0
)
return
false
;
...
@@ -84,11 +83,11 @@ static bool ContainsURL( demux_t *p_demux )
...
@@ -84,11 +83,11 @@ static bool ContainsURL( demux_t *p_demux )
while
(
p_peek
+
sizeof
(
"https://"
)
<
p_peek_end
)
while
(
p_peek
+
sizeof
(
"https://"
)
<
p_peek_end
)
{
{
/* One line starting with an URL is enough */
/* One line starting with an URL is enough */
if
(
!
strncasecmp
(
p_peek
,
"http://"
,
sizeof
(
"http://"
)
-
1
)
||
if
(
!
strncasecmp
(
(
const
char
*
)
p_peek
,
"http://"
,
7
)
||
!
strncasecmp
(
p_peek
,
"mms://"
,
sizeof
(
"mms://"
)
-
1
)
||
!
strncasecmp
(
(
const
char
*
)
p_peek
,
"mms://"
,
6
)
||
!
strncasecmp
(
p_peek
,
"rtsp://"
,
sizeof
(
"rtsp://"
)
-
1
)
||
!
strncasecmp
(
(
const
char
*
)
p_peek
,
"rtsp://"
,
7
)
||
!
strncasecmp
(
p_peek
,
"https://"
,
sizeof
(
"https://"
)
-
1
)
||
!
strncasecmp
(
(
const
char
*
)
p_peek
,
"https://"
,
8
)
||
!
strncasecmp
(
p_peek
,
"ftp://"
,
sizeof
(
"ftp://"
)
-
1
)
)
!
strncasecmp
(
(
const
char
*
)
p_peek
,
"ftp://"
,
6
)
)
{
{
return
true
;
return
true
;
}
}
...
...
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