Skip to content

Commit

Permalink
[acn]: Use 10ms as frequency of position query instead of 250ms
Browse files Browse the repository at this point in the history
  • Loading branch information
modeveci committed May 30, 2018
1 parent 394b3ed commit 1d120e0
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 1d120e0

Please sign in to comment.