Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0488fc05
Commit
0488fc05
authored
Dec 10, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backported fix for possible segfault with --input.
parent
e7a43d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
src/input/input.c
src/input/input.c
+11
-8
No files found.
src/input/input.c
View file @
0488fc05
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* decoders.
* decoders.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: input.c,v 1.163
2001/12/07 18:33:08 sam
Exp $
* $Id: input.c,v 1.163
.2.1 2001/12/10 16:17:42 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -459,24 +459,27 @@ static int InitThread( input_thread_t * p_input )
...
@@ -459,24 +459,27 @@ static int InitThread( input_thread_t * p_input )
}
}
else
else
#endif
#endif
if
(
(
(
strlen
(
p_input
->
p_source
)
>
4
)
if
(
(
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
||
TestMethod
(
INPUT_METHOD_VAR
,
"dvd"
)
)
||
TestMethod
(
INPUT_METHOD_VAR
,
"dvd"
)
)
&&
f
.
pf_open
!=
NULL
)
{
{
/* DVD - this is THE kludge */
/* DVD - this is THE kludge */
f
.
pf_open
(
p_input
);
f
.
pf_open
(
p_input
);
p_input
->
stream
.
i_method
=
INPUT_METHOD_DVD
;
p_input
->
stream
.
i_method
=
INPUT_METHOD_DVD
;
}
}
else
if
(
(
(
strlen
(
p_input
->
p_source
)
>
8
)
else
if
(
(
(
(
strlen
(
p_input
->
p_source
)
>
8
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvdread:"
,
8
)
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvdread:"
,
8
)
)
||
TestMethod
(
INPUT_METHOD_VAR
,
"dvdread"
)
)
||
TestMethod
(
INPUT_METHOD_VAR
,
"dvdread"
)
)
&&
f
.
pf_open
!=
NULL
)
{
{
/* DVDRead - this is THE kludge */
/* DVDRead - this is THE kludge */
f
.
pf_open
(
p_input
);
f
.
pf_open
(
p_input
);
p_input
->
stream
.
i_method
=
INPUT_METHOD_DVD
;
p_input
->
stream
.
i_method
=
INPUT_METHOD_DVD
;
}
}
else
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
else
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"vlc:"
,
4
)
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"vlc:"
,
4
)
&&
f
.
pf_open
!=
NULL
)
{
{
/* Dummy input - very kludgy */
/* Dummy input - very kludgy */
f
.
pf_open
(
p_input
);
f
.
pf_open
(
p_input
);
...
...
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