summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-06-24 17:42:19 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-06-24 17:42:19 +0200
commitd67fb2ce5563892d6b6735a82e1262cf35a713d9 (patch)
tree2bbc700bb74e0a9920a827fae12623dbe0d9f700 /vdr.c
parent947750f20beef15f12f461c7bdc035a9663833c4 (diff)
downloadvdr-d67fb2ce5563892d6b6735a82e1262cf35a713d9.tar.gz
vdr-d67fb2ce5563892d6b6735a82e1262cf35a713d9.tar.bz2
Added Dolby Digital recording/replay0.8.3
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 88dc2a1d..12b1a538 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.57 2001/05/25 09:31:09 kls Exp $
+ * $Id: vdr.c 1.58 2001/06/23 12:29:41 kls Exp $
*/
#include <getopt.h>
@@ -77,6 +77,7 @@ int main(int argc, char *argv[])
char *Terminal = NULL;
static struct option long_options[] = {
+ { "audio", required_argument, NULL, 'a' },
{ "config", required_argument, NULL, 'c' },
{ "daemon", no_argument, NULL, 'd' },
{ "device", required_argument, NULL, 'D' },
@@ -91,8 +92,10 @@ int main(int argc, char *argv[])
int c;
int option_index = 0;
- while ((c = getopt_long(argc, argv, "c:dD:hl:p:v:w:t:", long_options, &option_index)) != -1) {
+ while ((c = getopt_long(argc, argv, "a:c:dD:hl:p:v:w:t:", long_options, &option_index)) != -1) {
switch (c) {
+ case 'a': cDvbApi::SetAudioCommand(optarg);
+ break;
case 'c': ConfigDirectory = optarg;
break;
case 'd': DaemonMode = true; break;
@@ -107,6 +110,7 @@ int main(int argc, char *argv[])
return 2;
break;
case 'h': printf("Usage: vdr [OPTION]\n\n" // for easier orientation, this is column 80|
+ " -a CMD, --audio=CMD send Dolby Digital audio to stdin of command CMD\n"
" -c DIR, --config=DIR read config files from DIR (default is to read them\n"
" from the video directory)\n"
" -h, --help display this help and exit\n"