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
314ac3af
Commit
314ac3af
authored
Nov 13, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed a crash when using `--input dvd /dev/dvd' instead of `dvd:/dev/dvd'
parent
3355a621
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/input/input.c
src/input/input.c
+8
-5
No files found.
src/input/input.c
View file @
314ac3af
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.15
4 2001/11/12 22:42:56
sam Exp $
* $Id: input.c,v 1.15
5 2001/11/13 16:00:54
sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -65,6 +65,7 @@
#include "common.h"
#include "threads.h"
#include "mtime.h"
#include "tests.h"
#include "netutils.h"
#include "modules.h"
...
...
@@ -434,8 +435,9 @@ static int InitThread( input_thread_t * p_input )
}
else
#endif
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
if
(
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
||
TestMethod
(
INPUT_METHOD_VAR
,
"dvd"
)
)
{
/* DVD - this is THE kludge */
f
.
pf_open
(
p_input
);
...
...
@@ -559,8 +561,9 @@ static void CloseThread( input_thread_t * p_input )
}
else
#endif
if
(
(
strlen
(
p_input
->
p_source
)
>
4
)
if
(
(
(
strlen
(
p_input
->
p_source
)
>
4
)
&&
!
strncasecmp
(
p_input
->
p_source
,
"dvd:"
,
4
)
)
||
TestMethod
(
INPUT_METHOD_VAR
,
"dvd"
)
)
{
f
.
pf_close
(
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