summaryrefslogtreecommitdiffstats
path: root/src/plugins/multimedia/android/common/qandroidvideooutput.cpp
diff options
context:
space:
mode:
authorPiotr Srebrny <piotr.srebrny@qt.io>2022-12-15 15:42:33 +0100
committerPiotr Srebrny <piotr.srebrny@qt.io>2023-01-04 15:35:23 +0100
commit31411c025a823536c5b4e5da6230eab728bbe344 (patch)
treee1bebfc6698d03dcc976e73c8ebd9da25e71b6c7 /src/plugins/multimedia/android/common/qandroidvideooutput.cpp
parente98cfba8b1ef3d1c0fa4fccc2f2e12379e16db7b (diff)
Fix memleak in QGstCaps
gst_device_get_caps and gst_pad_query_caps require decreasing of reference count when caps are not longer needed. This was not done with QGstCaps. This patch adds reference counting on QGstCaps and remove QGstCapsMutable as it was based on a missconception. GstCaps can be mutated only when refernce count is 1. This was not ensured with QGstCapsMutable. Change-Id: Id058a0a916b5f76eef758a099791bec7cc917af9 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Lars Knoll <lars@knoll.priv.no> (cherry picked from commit f0ae787ec3d087a8afac45b1473a22c535a44dc3)
Diffstat (limited to 'src/plugins/multimedia/android/common/qandroidvideooutput.cpp')
0 files changed, 0 insertions, 0 deletions