From 86fa1e6129b89a59492d7eb4b84e52dbec3d49ad Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 15 Aug 2016 21:07:32 +0200 Subject: player: allow passing flags to queue_seek() Change the last parameter from a bool to an int, which is supposed to take bit-flags. The at this point only flag is MPSEEK_FLAG_DELAY, which replaces the previous bool parameter. The old false parameter becomes 0, the old true parameter becomes MPSEEK_FLAG_DELAY. Since the old "immediate" parameter is now essentially inverted, two coalesced immediate and delayed seeks end up as delayed instead of immediate. This change doesn't matter, since there are no relative immediate seeks anyway. --- player/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/audio.c') diff --git a/player/audio.c b/player/audio.c index 5b52eceb11..9fe7eb802a 100644 --- a/player/audio.c +++ b/player/audio.c @@ -229,7 +229,7 @@ int reinit_audio_filters(struct MPContext *mpctx) mpctx->playback_pts != MP_NOPTS_VALUE && delay > 0.2) { queue_seek(mpctx, MPSEEK_ABSOLUTE, mpctx->playback_pts, - MPSEEK_EXACT, true); + MPSEEK_EXACT, 0); } return 1; } -- cgit v1.2.3