From e97fc77890895791546a42ea4a769f23cfbfe73d Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Mon, 22 Sep 2014 14:03:34 +0200 Subject: [PATCH] GStreamer: fix QMediaPlayer metadata signals. - metaDataAvailableChanged was never emitted - metaDataChanged was not emitted when clearing the current media Change-Id: Ide05056450171a87aeb018be7e0bdea136341946 Reviewed-by: Andrew den Exter --- src/plugins/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp b/src/plugins/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp index e9c922e..b470a2c 100644 --- a/src/plugins/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp +++ b/src/plugins/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp @@ -164,6 +164,11 @@ void QGstreamerMetaDataProvider::updateTags() } } + if (oldTags.isEmpty() != m_tags.isEmpty()) { + emit metaDataAvailableChanged(isMetaDataAvailable()); + changed = true; + } + if (changed) emit metaDataChanged(); } -- 2.7.4