diff mplayer.c @ 32561:17bb5a38ae2e

build_afilter_chain is not safe to use directly, thus make it static and instead use reinit_audio_chain which should have better error handling. Fixes a crash with -af hrtf and changing speed, audio will still stop playing though.
author reimar
date Fri, 26 Nov 2010 20:52:35 +0000
parents 18338ee51c9d
children aa82dfc7bd49
line wrap: on
line diff
--- a/mplayer.c	Thu Nov 25 10:04:07 2010 +0000
+++ b/mplayer.c	Fri Nov 26 20:52:35 2010 +0000
@@ -1334,7 +1334,7 @@
  * \param sh_audio describes the requested input format of the chain.
  * \param ao_data describes the requested output format of the chain.
  */
-int build_afilter_chain(sh_audio_t *sh_audio, ao_data_t *ao_data)
+static int build_afilter_chain(sh_audio_t *sh_audio, ao_data_t *ao_data)
 {
   int new_srate;
   int result;