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

reimar subversion at mplayerhq.hu
Sat Jan 18 21:41:46 CET 2014


Author: reimar
Date: Sat Jan 18 21:41:46 2014
New Revision: 36612

Log:
Fully reinit audio chain on format change.

This ensures that we insert all necessary filters like
downmixing, but loses the current settings like volume or
equalizer that were set at runtime.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Jan 18 19:34:37 2014	(r36611)
+++ trunk/mplayer.c	Sat Jan 18 21:41:46 2014	(r36612)
@@ -2221,6 +2221,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;


More information about the MPlayer-cvslog mailing list