diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-11-26 20:52:35 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-16 04:47:15 +0200 |
commit | 21df1d5ec5681c744ba8679c8484c3e451d36f13 (patch) | |
tree | 5ec4100a1f93311d3531a34a621658fc4b6666c3 /mplayer.c | |
parent | a9b5a9348d51465167c0907a2913f6f14ad28d00 (diff) | |
download | mpv-21df1d5ec5681c744ba8679c8484c3e451d36f13.tar.bz2 mpv-21df1d5ec5681c744ba8679c8484c3e451d36f13.tar.xz |
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
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |