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

reimar subversion at mplayerhq.hu
Thu Oct 12 20:06:18 CEST 2006


Author: reimar
Date: Thu Oct 12 20:06:18 2006
New Revision: 20185

Modified:
   trunk/mplayer.c

Log:
Cosmetics for previous mplayer.c patch


Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Thu Oct 12 20:06:18 2006
@@ -1800,24 +1800,23 @@
         if(!arg) return 0;
 
         if (audio_id < 0)
-          *(char**)arg = strdup(MSGTR_Disabled);
+            *(char**)arg = strdup(MSGTR_Disabled);
         else {
             char lang[40] = MSGTR_Unknown;
-        if (demuxer->type == DEMUXER_TYPE_MATROSKA)
-            demux_mkv_get_audio_lang(demuxer, audio_id, lang, 9);
+            if (demuxer->type == DEMUXER_TYPE_MATROSKA)
+                demux_mkv_get_audio_lang(demuxer, audio_id, lang, 9);
 #ifdef USE_DVDREAD
-        else {
-            int code = 0;
-            code = dvd_lang_from_aid(stream, audio_id);
-            if (code) {
-                lang[0] = code >> 8;
-                lang[1] = code;
-                lang[2] = 0;
+            else {
+                int code = dvd_lang_from_aid(stream, audio_id);
+                if (code) {
+                    lang[0] = code >> 8;
+                    lang[1] = code;
+                    lang[2] = 0;
+                }
             }
-        }
 #endif
-        *(char**)arg = malloc(64);
-        snprintf(*(char**)arg, 64, "(%d) %s", audio_id, MSGTR_Unknown);
+            *(char**)arg = malloc(64);
+            snprintf(*(char**)arg, 64, "(%d) %s", audio_id, MSGTR_Unknown);
         }
         return 1;
 



More information about the MPlayer-cvslog mailing list