From a357d39369737f2f6608c669fac13d26e6c6b33a Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 21 Jul 2015 21:54:15 +0200 Subject: video: always re-probe auto deint filter on filter reconfig If filters are disabled or reconfigured, attempt to remove and probe the deinterlace filter again. This fixes behavior if e.g. a software deint filter was automatically inserted, and then hardware decoding is enabled during playback. Without this commit, initializing hw decoding would fail because of the software filter; with this commit, it'll replace it with the hw deinterlacer instead. --- player/command.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'player/command.h') diff --git a/player/command.h b/player/command.h index 85e81966c6..e65ffa0740 100644 --- a/player/command.h +++ b/player/command.h @@ -18,6 +18,8 @@ #ifndef MPLAYER_COMMAND_H #define MPLAYER_COMMAND_H +#include + struct MPContext; struct mp_cmd; struct mp_log; @@ -56,4 +58,7 @@ void mp_hook_run(struct MPContext *mpctx, char *client, char *type); void handle_ab_loop(struct MPContext *mpctx); +void remove_deint_filter(struct MPContext *mpctx); +void set_deinterlacing(struct MPContext *mpctx, bool enable); + #endif /* MPLAYER_COMMAND_H */ -- cgit v1.2.3