From 21df1d5ec5681c744ba8679c8484c3e451d36f13 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 26 Nov 2010 20:52:35 +0000 Subject: core: avoid using build_afilter_chain() directly 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32648 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 4a36afd2f2..8386bb1afd 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1373,7 +1373,8 @@ static void print_status(struct MPContext *mpctx, double a_pos, bool at_frame) * \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(struct MPContext *mpctx, sh_audio_t *sh_audio, ao_data_t *ao_data) +static int build_afilter_chain(struct MPContext *mpctx, sh_audio_t *sh_audio, + ao_data_t *ao_data) { struct MPOpts *opts = &mpctx->opts; int new_srate; -- cgit v1.2.3