summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-qt/qtmultimedia/files/qtmultimedia-5.14.2-gstreamer-buffering.patch')
-rw-r--r--dev-qt/qtmultimedia/files/qtmultimedia-5.14.2-gstreamer-buffering.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/dev-qt/qtmultimedia/files/qtmultimedia-5.14.2-gstreamer-buffering.patch b/dev-qt/qtmultimedia/files/qtmultimedia-5.14.2-gstreamer-buffering.patch
deleted file mode 100644
index 5d17b079613d..000000000000
--- a/dev-qt/qtmultimedia/files/qtmultimedia-5.14.2-gstreamer-buffering.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From d8d072417b08dd75734b3f0aa86c3a49db934770 Mon Sep 17 00:00:00 2001
-From: Roman Valov <roman.valov@gmail.com>
-Date: Mon, 13 Apr 2020 12:54:09 +0000
-Subject: [PATCH] Gstreamer: fix stream buffering
-
-Gstreamer client should handle GST_MESSAGE_BUFFERING to play and pause
-streams based on buffer-percent value and Qt does it properly.
-However `updateSessionState` of QGstreamerPlayerControl was implemented
-to go back into playing state each time session state becomes paused.
-That behavior resulted into choppy stream playback.
-Fix with condition to un-pause playback only if it's already buffered.
-
-Fixes: QTBUG-83417
-Change-Id: Ida4a9e2e196de00050bdc64725fa818c7e939785
-Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
----
- src/gsttools/qgstreamerplayercontrol.cpp | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/src/gsttools/qgstreamerplayercontrol.cpp b/src/gsttools/qgstreamerplayercontrol.cpp
-index 165978288..d65102e2f 100644
---- a/src/gsttools/qgstreamerplayercontrol.cpp
-+++ b/src/gsttools/qgstreamerplayercontrol.cpp
-@@ -439,8 +439,10 @@ void QGstreamerPlayerControl::updateSessionState(QMediaPlayer::State state)
- }
- m_pendingSeekPosition = -1;
-
-- if (m_currentState == QMediaPlayer::PlayingState)
-- m_session->play();
-+ if (m_currentState == QMediaPlayer::PlayingState) {
-+ if (m_mediaStatus == QMediaPlayer::BufferedMedia)
-+ m_session->play();
-+ }
- }
-
- updateMediaStatus();
---
-2.16.3