changeset 36408:b9cc6e7cd0a8

Prefer -title if given for audio output name. Implements bugzilla #2162.
author reimar
date Sat, 09 Nov 2013 08:46:02 +0000
parents 4a2171d83c8e
children 34aea1a1763e
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Nov 09 08:46:01 2013 +0000
+++ b/mplayer.c	Sat Nov 09 08:46:02 2013 +0000
@@ -3649,7 +3649,7 @@
             if (mpctx->sh_audio && mpctx->sh_audio->codec)
                 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_AUDIO_CODEC=%s\n", mpctx->sh_audio->codec->name);
             if (mpctx->audio_out)
-                mpctx->audio_out->control(AOCONTROL_FILENAME, (void *)mp_basename(filename));
+                mpctx->audio_out->control(AOCONTROL_FILENAME, vo_wintitle ? vo_wintitle : (void *)mp_basename(filename));
         }
 
         current_module = "av_init";