Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a6f1bb51
Commit
a6f1bb51
authored
Mar 18, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access/dshow: Add option to configure dshow from command line. Patch by Patrick Horn.
parent
5a5ded22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
THANKS
THANKS
+1
-0
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+45
-0
No files found.
THANKS
View file @
a6f1bb51
...
...
@@ -99,6 +99,7 @@ Nilmoni Deb <ndeb at ece.cmu.edu> - autoconf and Makefile fixes
Olivier Aubert <oaubert at bat710.univ-lyon1.fr> - clone list patch
Olivier Pomel <pomel at via.ecp.fr> - original VLC code
Øyvind Kolbu <oyvindk at world-online.no> - FreeBSD patches
Patrick Horn <patrickd0thorn at mindspring d0t com> - DirectShow patch
Paul Mackerras <paulus at linuxcare.com.au> - AltiVec IDCT and motion
Philippe Van Hecke <philippe at belnet dot be> - SAP header hash patch
Pierre Marc Dumuid <pierre.dumuid at adelaide dot edu dot au> - Playlist patches
...
...
modules/access/dshow/dshow.cpp
View file @
a6f1bb51
...
...
@@ -121,6 +121,21 @@ static char *ppsz_tuner_input_text[] =
#define TUNER_INPUT_TEXT N_("Tuner input type")
#define TUNER_INPUT_LONGTEXT N_( \
"Allows you to select the tuner input type (Cable/Antenna)." )
#define VIDEO_IN_TEXT N_("Video input pin")
#define VIDEO_IN_LONGTEXT N_( \
"Allows you to select the video input source, such as composite, s-video, " \
"or tuner. Since these settings are hardware-specfic, you should find good " \
"settings in the \"Device config\" area, and use those numbers here. -1 " \
"means that settings will not be changed.")
#define AUDIO_IN_TEXT N_("Audio input pin")
#define AUDIO_IN_LONGTEXT N_( \
"Allows you to select the audio input source. See the \"video input\" option." )
#define VIDEO_OUT_TEXT N_("Video output pin")
#define VIDEO_OUT_LONGTEXT N_( \
"Allows you to select the video output type. See the \"video input\" option." )
#define AUDIO_OUT_TEXT N_("Audio output pin")
#define AUDIO_OUT_LONGTEXT N_( \
"Allows you to select the audio output type. See the \"video input\" option." )
static
int
CommonOpen
(
vlc_object_t
*
,
access_sys_t
*
,
vlc_bool_t
);
static
void
CommonClose
(
vlc_object_t
*
,
access_sys_t
*
);
...
...
@@ -173,6 +188,18 @@ vlc_module_begin();
TUNER_INPUT_LONGTEXT
,
VLC_TRUE
);
change_integer_list
(
pi_tuner_input
,
ppsz_tuner_input_text
,
0
);
add_integer
(
"dshow-video-input"
,
-
1
,
NULL
,
VIDEO_IN_TEXT
,
VIDEO_IN_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"dshow-audio-input"
,
-
1
,
NULL
,
AUDIO_IN_TEXT
,
AUDIO_IN_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"dshow-video-output"
,
-
1
,
NULL
,
VIDEO_OUT_TEXT
,
VIDEO_OUT_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"dshow-audio-output"
,
-
1
,
NULL
,
AUDIO_OUT_TEXT
,
AUDIO_OUT_LONGTEXT
,
VLC_TRUE
);
add_shortcut
(
"dshow"
);
set_capability
(
"access_demux"
,
0
);
set_callbacks
(
DemuxOpen
,
DemuxClose
);
...
...
@@ -344,6 +371,11 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys,
var_Create
(
p_this
,
"dshow-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"dshow-video-input"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"dshow-audio-input"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"dshow-video-output"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"dshow-audio-output"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
/* Initialize OLE/COM */
CoInitialize
(
0
);
...
...
@@ -421,6 +453,19 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys,
for
(
i
=
p_sys
->
i_crossbar_route_depth
-
1
;
i
>=
0
;
--
i
)
{
var_Get
(
p_this
,
"dshow-video-input"
,
&
val
);
if
(
val
.
i_int
>
0
)
p_sys
->
crossbar_routes
[
i
].
VideoInputIndex
=
val
.
i_int
;
var_Get
(
p_this
,
"dshow-video-output"
,
&
val
);
if
(
val
.
i_int
>
0
)
p_sys
->
crossbar_routes
[
i
].
VideoOutputIndex
=
val
.
i_int
;
var_Get
(
p_this
,
"dshow-audio-input"
,
&
val
);
if
(
val
.
i_int
>
0
)
p_sys
->
crossbar_routes
[
i
].
AudioInputIndex
=
val
.
i_int
;
var_Get
(
p_this
,
"dshow-audio-output"
,
&
val
);
if
(
val
.
i_int
>
0
)
p_sys
->
crossbar_routes
[
i
].
AudioOutputIndex
=
val
.
i_int
;
IAMCrossbar
*
pXbar
=
p_sys
->
crossbar_routes
[
i
].
pXbar
;
LONG
VideoInputIndex
=
p_sys
->
crossbar_routes
[
i
].
VideoInputIndex
;
LONG
VideoOutputIndex
=
p_sys
->
crossbar_routes
[
i
].
VideoOutputIndex
;
...
...
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