Commit 4378984c authored by Qt Forward Merge Bot's avatar Qt Forward Merge Bot Committed by Edward Welbourne
Browse files

Merge remote-tracking branch 'origin/5.11' into dev

 Conflicts:
	.qmake.conf

Change-Id: I8d0aa330c9e5b2031b40ca645356226e8ebb50c8
parents a86ac5ba 7936c055
Branches
Tags
No related merge requests found
Showing with 8 additions and 2 deletions
...@@ -79,7 +79,11 @@ public: ...@@ -79,7 +79,11 @@ public:
delete m_intervalTimer; delete m_intervalTimer;
if (m_tag) if (m_tag)
#if GST_CHECK_VERSION(1, 6, 0)
gst_bus_remove_watch(m_bus);
#else
g_source_remove(m_tag); g_source_remove(m_tag);
#endif
} }
GstBus* bus() const { return m_bus; } GstBus* bus() const { return m_bus; }
......
...@@ -141,8 +141,10 @@ void QSampleCache::loadingRelease() ...@@ -141,8 +141,10 @@ void QSampleCache::loadingRelease()
m_loadingRefCount--; m_loadingRefCount--;
if (m_loadingRefCount == 0) { if (m_loadingRefCount == 0) {
if (m_loadingThread.isRunning()) { if (m_loadingThread.isRunning()) {
m_networkAccessManager->deleteLater(); if (m_networkAccessManager) {
m_networkAccessManager = nullptr; m_networkAccessManager->deleteLater();
m_networkAccessManager = nullptr;
}
m_loadingThread.exit(); m_loadingThread.exit();
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment