summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-21 21:54:15 +0200
committerwm4 <wm4@nowhere>2015-07-21 21:54:15 +0200
commita357d39369737f2f6608c669fac13d26e6c6b33a (patch)
tree64f9669b5e8883814c6ad45d4e8f7ea869e602fa /player/command.h
parente5fac76b3bd0df964cb39eba525f56721e57a5b2 (diff)
downloadmpv-a357d39369737f2f6608c669fac13d26e6c6b33a.tar.bz2
mpv-a357d39369737f2f6608c669fac13d26e6c6b33a.tar.xz
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.
Diffstat (limited to 'player/command.h')
-rw-r--r--player/command.h5
1 files changed, 5 insertions, 0 deletions
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 <stdbool.h>
+
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 */