kutils: fix build without MPV

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-02 13:37:59 +03:00
parent 9313e82973
commit f1a580ebaf

View file

@ -70,6 +70,7 @@ static bool s_fullscreen = false;
} \
}
#if defined(HAVE_MPV)
static QVariant mpvNodeToVariant(const mpv_node *mpvnode)
{
QVariant result;
@ -119,6 +120,7 @@ static QVariant mpvNodeToVariant(const mpv_node *mpvnode)
}
return result;
}
#endif // HAVE_MPV
// certain properties are not available when not playing for an example thus do not issue warning
// in case of error