diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/player/command.c b/player/command.c index 80c0c970fa..d94f819992 100644 --- a/player/command.c +++ b/player/command.c @@ -2613,35 +2613,6 @@ static int mp_property_frame_count(void *ctx, struct m_property *prop, return m_property_int_ro(action, arg, frames); } -#if HAVE_GPL -static int mp_property_video_color(void *ctx, struct m_property *prop, - int action, void *arg) -{ - const char *name = prop->priv ? prop->priv : prop->name; - MPContext *mpctx = ctx; - if (!mpctx->vo_chain) - return mp_property_generic_option(mpctx, prop, action, arg); - - switch (action) { - case M_PROPERTY_SET: { - if (video_set_colors(mpctx->vo_chain, name, *(int *) arg) <= 0) - return M_PROPERTY_UNAVAILABLE; - break; - } - case M_PROPERTY_GET: - if (video_get_colors(mpctx->vo_chain, name, (int *)arg) <= 0) - return M_PROPERTY_UNAVAILABLE; - // Write new value to option variable - mp_property_generic_option(mpctx, prop, M_PROPERTY_SET, arg); - return M_PROPERTY_OK; - case M_PROPERTY_GET_NEUTRAL: - *(int *)arg = 0; - return M_PROPERTY_OK; - } - return mp_property_generic_option(mpctx, prop, action, arg); -} -#endif - /// Video codec tag (RO) static int mp_property_video_format(void *ctx, struct m_property *prop, int action, void *arg) @@ -4041,15 +4012,6 @@ static const struct m_property mp_properties_base[] = { {"ontop", mp_property_ontop}, {"border", mp_property_border}, {"on-all-workspaces", mp_property_all_workspaces}, -#if HAVE_GPL - {"gamma", mp_property_video_color}, - {"brightness", mp_property_video_color}, - {"contrast", mp_property_video_color}, - {"saturation", mp_property_video_color}, - {"hue", mp_property_video_color}, - {"video-output-levels", mp_property_video_color, - .priv = (void *)"output-levels"}, -#endif {"video-out-params", mp_property_vo_imgparams}, {"video-dec-params", mp_property_dec_imgparams}, {"video-params", mp_property_vd_imgparams}, |