summaryrefslogtreecommitdiffstats
path: root/libmpv/qthelper.hpp
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-20 06:16:23 +0200
committerwm4 <wm4@nowhere>2017-04-20 06:19:55 +0200
commit5ae25ae42449b29edcb5d4561ef83f950fd26683 (patch)
tree50f041b3e7851dc2f2af1b63b71c2fd9f00d577e /libmpv/qthelper.hpp
parentf41e50530fb8144793a89d5edbccb1a415415e16 (diff)
downloadmpv-5ae25ae42449b29edcb5d4561ef83f950fd26683.tar.bz2
mpv-5ae25ae42449b29edcb5d4561ef83f950fd26683.tar.xz
client API: add MPV_ENABLE_DEPRECATED symbol
(Of course this is on by default, because otherwise we'd randomly break downstream applications.)
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.