Author: duncan
Date: Tue Dec 19 23:14:42 2006
New Revision: 8747

Modified:
   branches/rel-1-6/freevo/ChangeLog
   branches/rel-1-6/freevo/src/video/plugins/mplayer.py

Log:
[ 1619058 ] mplayer.py bug
Patch from Sylvain Fabre applied, fixed Matroska audio stream selection


Modified: branches/rel-1-6/freevo/ChangeLog
==============================================================================
--- branches/rel-1-6/freevo/ChangeLog   (original)
+++ branches/rel-1-6/freevo/ChangeLog   Tue Dec 19 23:14:42 2006
@@ -17,6 +17,7 @@
  * Fixed audio track name formatting (B#1605570,B#1605042)
  * Fixed autoshutdown unicode error (B#1612257)
  * Fixed cdbackup plug-in to correctly execute lame (B#1615970)
+ * Fixed mplayer to correctly handle Matroska audio ids (B#1619058)
  * Fixed weather unicode problem (B#1612617)
  * Updated autoshutdown to react to the return code and removed unused vars 
(B#1612257)
  * Updated osd forced fonts variables and freevo_config and local_conf 
(B#1608393)

Modified: branches/rel-1-6/freevo/src/video/plugins/mplayer.py
==============================================================================
--- branches/rel-1-6/freevo/src/video/plugins/mplayer.py        (original)
+++ branches/rel-1-6/freevo/src/video/plugins/mplayer.py        Tue Dec 19 
23:14:42 2006
@@ -182,8 +182,11 @@
         elif item.selected_subtitle:
             additional_args += [ '-sid', str(item.selected_subtitle) ]
             
-        if item.selected_audio != None:
-            additional_args += [ '-aid', str(item.selected_audio) ]
+        if item.selected_audio:
+            if item.mimetype == 'mkv':
+               additionnal_args += [ '-aid', str(item.selected_audio-1) ]
+            else:
+               additionnal_args += [ '-aid', str(item.selected_audio) ]
 
         if item['deinterlace'] and config.MPLAYER_VF_INTERLACED:
                 additional_args += [ '-vf',  config.MPLAYER_VF_INTERLACED ]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to