Mercurial > mplayer.hg
diff mplayer.c @ 36362:99708d402208
Pass playing filename to audio outputs.
Use it in pulseaudio to set the stream name.
author | reimar |
---|---|
date | Sun, 22 Sep 2013 09:03:30 +0000 |
parents | 805ff0c5b699 |
children | c918845d0d9a |
line wrap: on
line diff
--- a/mplayer.c Sun Sep 22 08:34:08 2013 +0000 +++ b/mplayer.c Sun Sep 22 09:03:30 2013 +0000 @@ -3648,6 +3648,8 @@ reinit_audio_chain(); 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)); } current_module = "av_init";