summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-11-26 20:52:35 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-12-16 04:47:15 +0200
commit21df1d5ec5681c744ba8679c8484c3e451d36f13 (patch)
tree5ec4100a1f93311d3531a34a621658fc4b6666c3 /mplayer.c
parenta9b5a9348d51465167c0907a2913f6f14ad28d00 (diff)
downloadmpv-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.c3
1 files changed, 2 insertions, 1 deletions
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;