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
ab0c58c8
Commit
ab0c58c8
authored
Jun 25, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/input.c: win32 compilation fix.
parent
f52471df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/input/input.c
src/input/input.c
+10
-5
No files found.
src/input/input.c
View file @
ab0c58c8
...
@@ -59,7 +59,7 @@ static void UpdateFromDemux( input_thread_t * );
...
@@ -59,7 +59,7 @@ static void UpdateFromDemux( input_thread_t * );
static
void
ParseOption
(
input_thread_t
*
p_input
,
const
char
*
psz_option
);
static
void
ParseOption
(
input_thread_t
*
p_input
,
const
char
*
psz_option
);
static
void
DecodeUrl
(
char
*
);
static
void
DecodeUrl
(
char
*
);
static
void
MRLSplit
(
char
*
,
char
**
,
char
**
,
char
**
);
static
void
MRLSplit
(
input_thread_t
*
,
char
*
,
char
**
,
char
**
,
char
**
);
static
input_source_t
*
InputSourceNew
(
input_thread_t
*
);
static
input_source_t
*
InputSourceNew
(
input_thread_t
*
);
static
int
InputSourceInit
(
input_thread_t
*
,
input_source_t
*
,
char
*
);
static
int
InputSourceInit
(
input_thread_t
*
,
input_source_t
*
,
char
*
);
...
@@ -468,8 +468,11 @@ static int Run( input_thread_t *p_input )
...
@@ -468,8 +468,11 @@ static int Run( input_thread_t *p_input )
/* We have finish to demux data but not to play them */
/* We have finish to demux data but not to play them */
while
(
!
p_input
->
b_die
)
while
(
!
p_input
->
b_die
)
{
{
#if 0
if( input_EsOutDecodersEmpty( p_input->p_es_out ) )
if( input_EsOutDecodersEmpty( p_input->p_es_out ) )
#endif
break
;
break
;
msg_Dbg
(
p_input
,
"waiting decoder fifos to empty"
);
msg_Dbg
(
p_input
,
"waiting decoder fifos to empty"
);
msleep
(
INPUT_IDLE_SLEEP
);
msleep
(
INPUT_IDLE_SLEEP
);
...
@@ -1502,7 +1505,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -1502,7 +1505,7 @@ static int InputSourceInit( input_thread_t *p_input,
vlc_value_t
val
;
vlc_value_t
val
;
/* Split uri */
/* Split uri */
MRLSplit
(
psz_dup
,
&
psz_access
,
&
psz_demux
,
&
psz_path
);
MRLSplit
(
p
_input
,
p
sz_dup
,
&
psz_access
,
&
psz_demux
,
&
psz_path
);
msg_Dbg
(
p_input
,
"`%s' gives access `%s' demux `%s' path `%s'"
,
msg_Dbg
(
p_input
,
"`%s' gives access `%s' demux `%s' path `%s'"
,
psz_mrl
,
psz_access
,
psz_demux
,
psz_path
);
psz_mrl
,
psz_access
,
psz_demux
,
psz_path
);
...
@@ -1895,7 +1898,7 @@ static void ParseOption( input_thread_t *p_input, const char *psz_option )
...
@@ -1895,7 +1898,7 @@ static void ParseOption( input_thread_t *p_input, const char *psz_option )
return
;
return
;
}
}
static
void
MRLSplit
(
char
*
psz_dup
,
static
void
MRLSplit
(
input_thread_t
*
p_input
,
char
*
psz_dup
,
char
**
ppsz_access
,
char
**
ppsz_demux
,
char
**
ppsz_path
)
char
**
ppsz_access
,
char
**
ppsz_demux
,
char
**
ppsz_path
)
{
{
char
*
psz_access
=
NULL
;
char
*
psz_access
=
NULL
;
...
@@ -1904,14 +1907,17 @@ static void MRLSplit( char *psz_dup,
...
@@ -1904,14 +1907,17 @@ static void MRLSplit( char *psz_dup,
char
*
psz
;
char
*
psz
;
psz
=
strchr
(
psz_dup
,
':'
);
psz
=
strchr
(
psz_dup
,
':'
);
#if defined( WIN32 ) || defined( UNDER_CE )
#if defined( WIN32 ) || defined( UNDER_CE )
if
(
psz
-
psz_dup
==
1
)
if
(
psz
-
psz_dup
==
1
)
{
{
msg_Warn
(
p_input
,
"drive letter %c: found in source string"
,
psz_dup
[
0
]
);
msg_Warn
(
p_input
,
"drive letter %c: found in source string"
,
psz_dup
[
0
]
);
psz_path
=
psz_dup
;
psz_path
=
psz_dup
;
}
}
else
else
#endif
#endif
if
(
psz
)
if
(
psz
)
{
{
*
psz
++
=
'\0'
;
*
psz
++
=
'\0'
;
...
@@ -1949,4 +1955,3 @@ static void MRLSplit( char *psz_dup,
...
@@ -1949,4 +1955,3 @@ static void MRLSplit( char *psz_dup,
else
else
*
ppsz_path
=
psz_path
;
*
ppsz_path
=
psz_path
;
}
}
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