changeset 20179:be692800bc0c

Cosmetics for previous mplayer.c patch
author reimar
date Thu, 12 Oct 2006 18:06:18 +0000
parents ce9587982eb5
children 1d431fc6e6aa
files mplayer.c
diffstat 1 files changed, 12 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Thu Oct 12 18:03:28 2006 +0000
+++ b/mplayer.c	Thu Oct 12 18:06:18 2006 +0000
@@ -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;