Hi all,

Attached is a small patch for freevo-1.5.4 to set the -ao option for mplayer when playing tv. Could have done the same thing with MPLAYER_ARGS_DEF but this would conflict with the dvd mode.

I wasn't getting any sound when playing tv, music and dvd was fine.

Regards,
Duncan
diff -Naur freevo-1.5.4.orig/src/tv/plugins/mplayer.py 
freevo-1.5.4/src/tv/plugins/mplayer.py
--- freevo-1.5.4.orig/src/tv/plugins/mplayer.py 2005-10-16 11:18:50.000000000 
+0200
+++ freevo-1.5.4/src/tv/plugins/mplayer.py      2005-11-21 17:01:59.000000000 
+0100
@@ -120,7 +120,7 @@
 
         # Build the MPlayer command
         args = (config.MPLAYER_NICE, config.MPLAYER_CMD, config.MPLAYER_VO_DEV,
-                config.MPLAYER_VO_DEV_OPTS, config.MPLAYER_ARGS_DEF)
+                config.MPLAYER_VO_DEV_OPTS, config.MPLAYER_AO_DEV, 
config.MPLAYER_ARGS_DEF)
 
         if mode == 'tv':
             if vg.group_type == 'ivtv':
@@ -175,7 +175,7 @@
 
         args += (tvcmd,)
 
-        mpl = '--prio=%s %s -vo %s%s -fs %s -slave %s %s' % args
+        mpl = '--prio=%s %s -vo %s%s -ao %s -fs %s -slave %s %s' % args
 
         command = mpl
         self.mode = mode

Reply via email to