1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-23 20:00:56 +00:00

command: allow changing deinterlace property any time

Don't require video decoding to be active.
This commit is contained in:
wm4 2015-07-08 15:24:34 +02:00
parent ef7278b4fd
commit 9aadc0199f

View File

@ -2165,7 +2165,7 @@ static int mp_property_deinterlace(void *ctx, struct m_property *prop,
{
MPContext *mpctx = ctx;
if (!mpctx->d_video || !mpctx->d_video->vfilter)
return M_PROPERTY_UNAVAILABLE;
return mp_property_generic_option(mpctx, prop, action, arg);
switch (action) {
case M_PROPERTY_GET:
*(int *)arg = get_deinterlacing(mpctx) > 0;