[MPlayer-cvslog] r20187 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Thu Oct 12 20:10:45 CEST 2006


Author: reimar
Date: Thu Oct 12 20:10:45 2006
New Revision: 20187

Modified:
   trunk/mplayer.c

Log:
simplify mp_property_sub


Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Thu Oct 12 20:10:45 2006
@@ -2107,7 +2107,6 @@
         if (demuxer->type == DEMUXER_TYPE_MATROSKA && dvdsub_id >= 0) {
             char lang[40] = MSGTR_Unknown;
             demux_mkv_get_sub_lang(demuxer, dvdsub_id, lang, 9);
-            lang[39] = 0;
             snprintf(*(char**)arg, 63, "(%d) %s", dvdsub_id, lang);
             return 1;
         }
@@ -2129,14 +2128,11 @@
         }
 #ifdef USE_DVDREAD
         if (vo_spudec && dvdsub_id >= 0) {
-            char lang[3] = "\0\0\0";
-            int code = 0;
-            code = dvd_lang_from_sid(stream, dvdsub_id);
-            if (code) {
+            char lang[3];
+            int code = dvd_lang_from_sid(stream, dvdsub_id);
                 lang[0] = code >> 8;
                 lang[1] = code;
                 lang[2] = 0;
-            }
             snprintf(*(char**)arg, 63, "(%d) %s",
                      dvdsub_id, lang);
             return 1;



More information about the MPlayer-cvslog mailing list