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
132e2e77
Commit
132e2e77
authored
Oct 30, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed '-' input.
parent
85762c9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
src/input/input.c
src/input/input.c
+26
-1
No files found.
src/input/input.c
View file @
132e2e77
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.14
6 2001/10/30 10:48:14
massiot Exp $
* $Id: input.c,v 1.14
7 2001/10/30 10:57:37
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -91,6 +91,7 @@ static void DestroyThread ( input_thread_t *p_input );
static
void
EndThread
(
input_thread_t
*
p_input
);
static
void
FileOpen
(
input_thread_t
*
p_input
);
static
void
StdOpen
(
input_thread_t
*
p_input
);
static
void
FileClose
(
input_thread_t
*
p_input
);
#if !defined( SYS_BEOS ) && !defined( SYS_NTO )
static
void
NetworkOpen
(
input_thread_t
*
p_input
);
...
...
@@ -443,6 +444,11 @@ static int InitThread( input_thread_t * p_input )
/* Dummy input - very kludgy */
p_input
->
p_input_module
->
p_functions
->
input
.
functions
.
input
.
pf_open
(
p_input
);
}
else
if
(
(
strlen
(
p_input
->
p_source
)
==
1
)
&&
*
p_input
->
p_source
==
'-'
)
{
/* Stdin */
StdOpen
(
p_input
);
}
else
{
/* File input */
...
...
@@ -571,6 +577,25 @@ static void DestroyThread( input_thread_t * p_input )
*
pi_status
=
THREAD_OVER
;
}
/*****************************************************************************
* StdOpen : open standard input
*****************************************************************************/
static
void
StdOpen
(
input_thread_t
*
p_input
)
{
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
/* Suppose we can control the pace - this won't work in some cases ! */
p_input
->
stream
.
b_pace_control
=
1
;
p_input
->
stream
.
b_seekable
=
0
;
p_input
->
stream
.
p_selected_area
->
i_size
=
0
;
p_input
->
stream
.
p_selected_area
->
i_tell
=
0
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
intf_WarnMsg
(
2
,
"input: opening stdin"
);
p_input
->
i_handle
=
0
;
}
/*****************************************************************************
* FileOpen : open a file descriptor
*****************************************************************************/
...
...
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