Skip to content

Commit 1d120e0

Browse files
committed
[acn]: Use 10ms as frequency of position query instead of 250ms
1 parent 394b3ed commit 1d120e0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
2+
index 0a875d2..d855fea 100644
3+
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
4+
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
5+
@@ -357,7 +357,7 @@ MediaTime MediaPlayerPrivateGStreamer::playbackPosition() const
6+
}
7+
8+
double now = WTF::currentTime();
9+
- if (m_lastQuery > -1 && ((now - m_lastQuery) < 0.25) && m_cachedPosition.isValid())
10+
+ if (m_lastQuery > -1 && ((now - m_lastQuery) < 0.01) && m_cachedPosition.isValid())
11+
return m_cachedPosition;
12+
13+
m_lastQuery = now;

0 commit comments

Comments
 (0)