summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index d3d8fecbe6..60ce915a9a 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2808,6 +2808,16 @@ static int mp_property_af(void *ctx, struct m_property *prop,
return property_filter(prop, action, arg, ctx, STREAM_AUDIO);
}
+static int property_reinit_vf_helper(void *ctx, struct m_property *prop,
+ int action, void *arg)
+{
+ MPContext *mpctx = ctx;
+ int r = mp_property_generic_option(mpctx, prop, action, arg);
+ if (action == M_PROPERTY_SET && r == M_PROPERTY_OK)
+ reinit_video_filters(mpctx);
+ return r;
+}
+
static int mp_property_alias(void *ctx, struct m_property *prop,
int action, void *arg)
{
@@ -3048,6 +3058,8 @@ static const struct m_property mp_properties[] = {
{"vf", mp_property_vf},
{"af", mp_property_af},
+ {"video-rotate", property_reinit_vf_helper},
+
#define PROPERTY_TV_COLOR(name, type) \
{name, mp_property_tv_color, (void *)(intptr_t)type}
PROPERTY_TV_COLOR("tv-brightness", TV_COLOR_BRIGHTNESS),