summaryrefslogtreecommitdiffstats
path: root/src/multimedia/platform/gstreamer/common/qgstutils_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-02-05 14:46:11 +0100
committerLars Knoll <lars.knoll@qt.io>2021-02-09 19:03:56 +0000
commitea27ae88abcf82e4c034d48f5b45e16f0fd29a6b (patch)
tree267af0abf6128c33b7724c588de028303841e92d /src/multimedia/platform/gstreamer/common/qgstutils_p.h
parent177dd889e1f1a046c04770e4afe85d29b1476a84 (diff)
More changes for QMediaFormat handling on the backend
The codecs supported by a certain muxer/demuxer are actually something we need to determine from the backend. So a static mapping in QMediaFormat will not really work. Change-Id: I848c607ed222eba160a7c9c1c7b216b991e5ceba Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/platform/gstreamer/common/qgstutils_p.h')
-rw-r--r--src/multimedia/platform/gstreamer/common/qgstutils_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/multimedia/platform/gstreamer/common/qgstutils_p.h b/src/multimedia/platform/gstreamer/common/qgstutils_p.h
index 7b6b6ded1..5cf5035ea 100644
--- a/src/multimedia/platform/gstreamer/common/qgstutils_p.h
+++ b/src/multimedia/platform/gstreamer/common/qgstutils_p.h
@@ -195,6 +195,10 @@ class QGstCaps {
public:
QGstCaps(const GstCaps *c) : caps(c) {}
const GstCaps *caps;
+ void unref() {
+ gst_caps_unref(const_cast<GstCaps *>(caps));
+ caps = nullptr;
+ }
bool isNull() const { return !caps; }