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:
parent
ef7278b4fd
commit
9aadc0199f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user