summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/vdr.c b/vdr.c
index 41d20477..5c634c2e 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.130 2002/10/27 15:20:56 kls Exp $
+ * $Id: vdr.c 1.131 2002/11/03 11:44:17 kls Exp $
*/
#include <getopt.h>
@@ -30,6 +30,7 @@
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
+#include "audio.h"
#include "channels.h"
#include "config.h"
#include "cutter.h"
@@ -87,6 +88,7 @@ int main(int argc, char *argv[])
#define DEFAULTPLUGINDIR "./PLUGINS/lib"
int SVDRPport = DEFAULTSVDRPPORT;
+ const char *AudioCommand = NULL;
const char *ConfigDirectory = NULL;
bool DisplayHelp = false;
bool DisplayVersion = false;
@@ -121,10 +123,8 @@ int main(int argc, char *argv[])
int c;
while ((c = getopt_long(argc, argv, "a:c:dD:E:hl:L:mp:P:r:s:t:v:Vw:", long_options, NULL)) != -1) {
switch (c) {
- /*XXX+
- case 'a': cDevice::SetAudioCommand(optarg);
+ case 'a': AudioCommand = optarg;
break;
- XXX*/
case 'c': ConfigDirectory = optarg;
break;
case 'd': DaemonMode = true; break;
@@ -365,6 +365,11 @@ int main(int argc, char *argv[])
#endif
Interface->LearnKeys();
+ // External audio:
+
+ if (AudioCommand)
+ new cExternalAudio(AudioCommand);
+
// Channel:
Channels.SwitchTo(Setup.CurrentChannel);
@@ -676,6 +681,7 @@ int main(int argc, char *argv[])
delete Interface;
cOsd::Shutdown();
Remotes.Clear();
+ Audios.Clear();
Setup.CurrentChannel = cDevice::CurrentChannel();
Setup.CurrentVolume = cDevice::CurrentVolume();
Setup.Save();