diff options
author | wm4 <wm4@nowhere> | 2014-10-21 13:28:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-21 13:31:30 +0200 |
commit | cdbc865ad09531f733e95eb3e6a18b273910e0e7 (patch) | |
tree | 410d091952068e0c7293c89064748e6e1d08d00e /player | |
parent | f8e254864c30a86e87f4703267ee970586728b77 (diff) | |
download | mpv-cdbc865ad09531f733e95eb3e6a18b273910e0e7.tar.bz2 mpv-cdbc865ad09531f733e95eb3e6a18b273910e0e7.tar.xz |
command: add video-rotate property
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 12 |
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), |