diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2019-09-07 10:49:38 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2019-09-07 10:49:38 +0300 |
commit | 6e4fb2f3fcfb453c5522c66457ac5ed8c3b1b05c (patch) | |
tree | 24593600298aada1428ccdc5b16272391f602c04 | |
parent | a0e95b202a72b6d9e48bd1949ab6811c0f3c91c3 (diff) |
Because the macro version of gst_caps_copy() confuses the C++ compiler
-rw-r--r-- | src/QGst/caps.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QGst/caps.cpp b/src/QGst/caps.cpp index 3824d82..a15b701 100644 --- a/src/QGst/caps.cpp +++ b/src/QGst/caps.cpp @@ -54,7 +54,8 @@ QString Caps::toString() const void Caps::append(const CapsPtr & caps2) { - gst_caps_append(object<GstCaps>(), gst_caps_copy(caps2)); + const GstCaps * caps2ptr = caps2; + gst_caps_append(object<GstCaps>(), gst_caps_copy(caps2ptr)); } CapsPtr Caps::merge(CapsPtr & caps2) |