summaryrefslogtreecommitdiffstats
path: root/src/gsttools/qgstvideorenderersink.cpp
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-07-23 10:33:51 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-07-23 10:33:51 +0200
commit14d6166b2790b37906fd76248d955659ff78622f (patch)
treef02ec37165b5ae47beb238aa23031e6e2106502f /src/gsttools/qgstvideorenderersink.cpp
parente99a2e1701179d0d28ef1d1eac696d480894f4bb (diff)
parent2eb0a98f1de07782004a5a4261cb5d2c46ca6d15 (diff)
Merge branch 'dev' of git://code.qt.io/qt/qtmultimedia into wip/qt6
Diffstat (limited to 'src/gsttools/qgstvideorenderersink.cpp')
-rw-r--r--src/gsttools/qgstvideorenderersink.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsttools/qgstvideorenderersink.cpp b/src/gsttools/qgstvideorenderersink.cpp
index 49016b952..5f71d342c 100644
--- a/src/gsttools/qgstvideorenderersink.cpp
+++ b/src/gsttools/qgstvideorenderersink.cpp
@@ -686,7 +686,8 @@ void QGstVideoRendererSink::handleShowPrerollChange(GObject *o, GParamSpec *p, g
if (!showPrerollFrame) {
GstState state = GST_STATE_VOID_PENDING;
- gst_element_get_state(GST_ELEMENT(sink), &state, NULL, GST_CLOCK_TIME_NONE);
+ GstClockTime timeout = 10000000; // 10 ms
+ gst_element_get_state(GST_ELEMENT(sink), &state, NULL, timeout);
// show-preroll-frame being set to 'false' while in GST_STATE_PAUSED means
// the QMediaPlayer was stopped from the paused state.
// We need to flush the current frame.