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
64220f44
Commit
64220f44
authored
Oct 06, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/playlist/gvp.c: fixed segfault in detection code.
parent
9361dd4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/demux/playlist/gvp.c
modules/demux/playlist/gvp.c
+12
-3
No files found.
modules/demux/playlist/gvp.c
View file @
64220f44
...
@@ -77,14 +77,23 @@ static int Control( demux_t *p_demux, int i_query, va_list args );
...
@@ -77,14 +77,23 @@ static int Control( demux_t *p_demux, int i_query, va_list args );
int
E_
(
Import_GVP
)(
vlc_object_t
*
p_this
)
int
E_
(
Import_GVP
)(
vlc_object_t
*
p_this
)
{
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
int
i_peek
,
i
,
b_found
=
VLC_FALSE
;
byte_t
*
p_peek
;
byte_t
*
p_peek
;
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
MAX_LINE
);
i_peek
=
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
MAX_LINE
);
if
(
!
strstr
(
p_peek
,
"gvp_version:"
)
)
for
(
i
=
0
;
i
<
i_peek
-
(
int
)
sizeof
(
"gvp_version:"
);
i
++
)
{
{
return
VLC_EGENERIC
;
if
(
p_peek
[
i
]
==
'g'
&&
p_peek
[
i
+
1
]
==
'v'
&&
p_peek
[
i
+
2
]
==
'p'
&&
!
memcmp
(
p_peek
,
"gvp_version:"
,
sizeof
(
"gvp_version:"
)
-
1
)
)
{
b_found
=
VLC_TRUE
;
break
;
}
}
}
if
(
!
b_found
)
return
VLC_EGENERIC
;
STANDARD_DEMUX_INIT_MSG
(
"using Google Video Playlist (gvp) import"
)
STANDARD_DEMUX_INIT_MSG
(
"using Google Video Playlist (gvp) import"
)
p_demux
->
pf_control
=
Control
;
p_demux
->
pf_control
=
Control
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_demux
=
Demux
;
...
...
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