summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPiotr Srebrny <piotr.srebrny@qt.io>2022-12-13 11:59:59 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-12-14 09:34:48 +0000
commitee0f63f87099ea76220834ad586df50a09ff2073 (patch)
tree0c023ba263b3ebb21c75bf14155af21219e17cf8 /src
parent3c7cf30055b7ef7e0d771f18be8f45778d23e0ff (diff)
Disconnect all signals from QVideoSink before unregistering sources
gstreamer implementation of QPlatformVideoSink emits signals to QVideoSink on the call to unregisterSource(). This causes ASSERT failure as QVideoSink is being destroyed at that time. Disconnecting all signals from QVideSink before calling unregisterSource() prevents this. Change-Id: I137bef89ec84e166b9d2c176680d4cde1abbdea2 Reviewed-by: Lars Knoll <lars@knoll.priv.no> (cherry picked from commit b34c8fb3e637a02ef9c49f3c6b7f58254d2d6136) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/multimedia/video/qvideosink.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multimedia/video/qvideosink.cpp b/src/multimedia/video/qvideosink.cpp
index 1c91f455d..83a70964a 100644
--- a/src/multimedia/video/qvideosink.cpp
+++ b/src/multimedia/video/qvideosink.cpp
@@ -91,6 +91,7 @@ QVideoSink::QVideoSink(QObject *parent)
*/
QVideoSink::~QVideoSink()
{
+ disconnect(this);
d->unregisterSource();
delete d;
}