Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
8fb55fe0
Commit
8fb55fe0
authored
Oct 23, 2003
by
bigben
Browse files
Added the "input" parameter in pvr input command line. Default is input=4 (tuner)
parent
8ac29ed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/pvr/pvr.c
View file @
8fb55fe0
...
...
@@ -2,7 +2,7 @@
* pvr.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: pvr.c,v 1.
7
2003/
09/08 11:05:02
bigben Exp $
* $Id: pvr.c,v 1.
8
2003/
10/23 22:46:16
bigben Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -97,6 +97,7 @@ struct access_sys_t
int
i_bitrate
;
int
i_bitrate_peak
;
int
i_bitrate_mode
;
int
i_input
;
};
/*****************************************************************************
...
...
@@ -133,6 +134,7 @@ static int Open( vlc_object_t * p_this )
p_sys
->
i_framerate
=
25
;
p_sys
->
i_bitrate
=
3000000
;
p_sys
->
i_bitrate_peak
=
4000000
;
p_sys
->
i_input
=
4
;
/* parse command line options */
psz_tofree
=
strdup
(
p_input
->
psz_name
);
...
...
@@ -173,6 +175,13 @@ static int Open( vlc_object_t * p_this )
&
psz_parser
,
0
);}
}
else
if
(
!
strncmp
(
psz_parser
,
"input="
,
strlen
(
"input="
)
)
)
{
p_sys
->
i_input
=
strtol
(
psz_parser
+
strlen
(
"input="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"device="
,
strlen
(
"device="
)
)
)
{
psz_device
=
calloc
(
strlen
(
"/dev/videox"
)
+
1
,
1
);
...
...
@@ -287,9 +296,9 @@ static int Open( vlc_object_t * p_this )
free
(
psz_tofree
);
msg_Dbg
(
p_input
,
"device: %s, standard: %x, size: %dx%d, "
msg_Dbg
(
p_input
,
"device: %s,
input: %d,
standard: %x, size: %dx%d, "
"frequency: %d, framerate: %d, bitrate: %d/%d/%d"
,
psz_device
,
p_sys
->
i_standard
,
p_sys
->
i_width
,
psz_device
,
p_sys
->
i_input
,
p_sys
->
i_standard
,
p_sys
->
i_width
,
p_sys
->
i_height
,
p_sys
->
i_frequency
,
p_sys
->
i_framerate
,
p_sys
->
i_bitrate
,
p_sys
->
i_bitrate_peak
,
p_sys
->
i_bitrate_mode
);
...
...
@@ -301,6 +310,13 @@ static int Open( vlc_object_t * p_this )
}
free
(
psz_device
);
/* set the input */
if
(
ioctl
(
p_sys
->
i_fd
,
VIDIOC_S_INPUT
,
&
p_sys
->
i_input
)
<
0
)
{
msg_Warn
(
p_input
,
"VIDIOC_S_INPUT failed"
);
}
/* set the video standard */
if
(
ioctl
(
p_sys
->
i_fd
,
VIDIOC_S_STD
,
&
p_sys
->
i_standard
)
<
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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