[Pkg-wmaker-commits] [wmtv] 23/48: wmtv: Add new -c option to choose the video4linux device to use.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Feb 1 20:13:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmtv.
commit 9a01d7950efe0e264e49501f184b05a9523639cc
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Mon Feb 1 00:45:16 2016 -0500
wmtv: Add new -c option to choose the video4linux device to use.
Patch by Nicolas Boullis <nboullis at debian.org>. Introduced in Debian
package version 0.6.5-16.
---
src/wmtv.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/wmtv.c b/src/wmtv.c
index 354a6dd..5daa36c 100644
--- a/src/wmtv.c
+++ b/src/wmtv.c
@@ -77,7 +77,7 @@
#define SETSPD 3
#define MAXCHAN 99
-#define OPTIONS "hvd:g:e:b:"
+#define OPTIONS "hvd:g:e:b:c:"
#define TELEVISION 0
#define COMPOSITE 1
@@ -288,6 +288,7 @@ main(int argc, char *argv[])
int pressed_button = -1;
/* pid_t pid; */
static struct option long_options[] = {
+ {"device", 1, 0, 'c'},
{"display", 1, 0, 'd'},
{"geometry", 1, 0, 'g'},
{"bpp", 1, 0, 'b'},
@@ -338,6 +339,9 @@ main(int argc, char *argv[])
exe = strdup(optarg);
/* strcat(exe, " &"); */
break;
+ case 'c':
+ dev = strdup(optarg);
+ break;
case 'b':
fprintf(stderr, "wmtv: option not implemented yet\n");
Usage();
@@ -1677,6 +1681,7 @@ Usage(void)
fprintf(stderr, "\n");
fprintf(stderr, "wmtv v%s, Copyright (c) 1999 Wee Liang <wliang at tartarus.uwa.edu.au>\n", VERSION);
fprintf(stderr, "usage: wmtv [%s]\n", OPTIONS);
+ fprintf(stderr, " -c, --device <file>\tsets video4linux device to use\n");
fprintf(stderr, " -d, --display <host:vs>\tsets display name\n");
fprintf(stderr, " -g, --geometry <{+-}XP{+-}YP>\tsets geometry\n");
fprintf(stderr, " -b, --bpp\t\t\tdisplay color depth\n");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmtv.git
More information about the Pkg-wmaker-commits
mailing list