diff options
author | wm4 <wm4@nowhere> | 2014-03-30 19:21:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-30 19:59:26 +0200 |
commit | 239dc2851a9001ff3c69c613d621125c9a95e8ae (patch) | |
tree | 5705b64f2268536938fc4987628ade7d424a965a /player/audio.c | |
parent | 392997fa109ec8b6431b16af070cc2dbd043ae8f (diff) | |
download | mpv-239dc2851a9001ff3c69c613d621125c9a95e8ae.tar.bz2 mpv-239dc2851a9001ff3c69c613d621125c9a95e8ae.tar.xz |
command: allow changing filters before video chain initialization
Apparently this is more intuitive.
Somewhat tricky, because of the odd state after loading a file but
before initializing the VO.
Diffstat (limited to 'player/audio.c')
-rw-r--r-- | player/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c index 65c4ad74dd..12d03689eb 100644 --- a/player/audio.c +++ b/player/audio.c @@ -88,7 +88,7 @@ int reinit_audio_filters(struct MPContext *mpctx) { struct dec_audio *d_audio = mpctx->d_audio; if (!d_audio) - return -2; + return 0; af_uninit(mpctx->d_audio->afilter); if (af_init(mpctx->d_audio->afilter) < 0) @@ -96,7 +96,7 @@ int reinit_audio_filters(struct MPContext *mpctx) if (recreate_audio_filters(mpctx) < 0) return -1; - return 0; + return 1; } void reinit_audio_chain(struct MPContext *mpctx) |