[MPlayer-users] Crash with -ao jack when channel layout changes in a broadcast aac/latm stream when resample needed.
Andy Furniss
adf.lists at gmail.com
Thu Dec 12 00:15:23 CET 2013
Reimar Döffinger wrote:
> I am not sure it will fix the reason for the crash (that seems partially
> unrelated), but below patch seems to avoid the issue by fully rebuilding
> the filter chain.
> Unfortunately it means that runtime-changes like volume etc. will
> get lost every time.
> Note that there might be an additional issue with FFmpeg not respecting
> that only 2 channels were requested - I don't know if the AAC decoder
> is supposed to respect that or not.
> --- a/mplayer.c
> +++ b/mplayer.c
> @@ -2218,6 +2218,9 @@ static int fill_audio_out_buffers(void)
> }
> if (format_change) {
> uninit_player(INITIALIZED_AO);
> + af_uninit(sh_audio->afilter);
> + free(sh_audio->afilter);
> + sh_audio->afilter = NULL;
> reinit_audio_chain();
> }
> return 1;
Thanks that fixes it for me and also makes alsa work properly.
I tend not to use softvol with jack preferring alsamixer - which makes
me wonder if it's possible to get mplayer to honor -mixer-channel Master
even when alsa isn't the output?
From what Carl Eugen said in my March post - aacdec doesn't do
request_channels.
More information about the MPlayer-users
mailing list