From 1d120e02ee44d7b3a989231242d54176fe082268 Mon Sep 17 00:00:00 2001 From: modeveci Date: Wed, 30 May 2018 13:56:41 +0200 Subject: [PATCH] [acn]: Use 10ms as frequency of position query instead of 250ms --- .../0011-change-position-query-frequency-10ms.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/wpe/wpewebkit/0011-change-position-query-frequency-10ms.patch diff --git a/package/wpe/wpewebkit/0011-change-position-query-frequency-10ms.patch b/package/wpe/wpewebkit/0011-change-position-query-frequency-10ms.patch new file mode 100644 index 000000000000..dcd6103fa12e --- /dev/null +++ b/package/wpe/wpewebkit/0011-change-position-query-frequency-10ms.patch @@ -0,0 +1,13 @@ +diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +index 0a875d2..d855fea 100644 +--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp ++++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +@@ -357,7 +357,7 @@ MediaTime MediaPlayerPrivateGStreamer::playbackPosition() const + } + + double now = WTF::currentTime(); +- if (m_lastQuery > -1 && ((now - m_lastQuery) < 0.25) && m_cachedPosition.isValid()) ++ if (m_lastQuery > -1 && ((now - m_lastQuery) < 0.01) && m_cachedPosition.isValid()) + return m_cachedPosition; + + m_lastQuery = now;