summaryrefslogtreecommitdiffstats
path: root/libmpv/qthelper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmpv/qthelper.hpp')
-rw-r--r--libmpv/qthelper.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpv/qthelper.hpp b/libmpv/qthelper.hpp
index f91aa15ea4..bc30dec8a5 100644
--- a/libmpv/qthelper.hpp
+++ b/libmpv/qthelper.hpp
@@ -226,6 +226,8 @@ struct node_autofree {
~node_autofree() { mpv_free_node_contents(ptr); }
};
+#if MPV_ENABLE_DEPRECATED
+
/**
* Return the given property as mpv_node converted to QVariant, or QVariant()
* on error.
@@ -283,6 +285,8 @@ static inline QVariant command_variant(mpv_handle *ctx, const QVariant &args)
return node_to_variant(&res);
}
+#endif
+
/**
* This is used to return error codes wrapped in QVariant for functions which
* return QVariant.