[GStreamer] usec rounding is wrong during accurate seeking
authorphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jun 2016 11:26:07 +0000 (11:26 +0000)
committerphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jun 2016 11:26:07 +0000 (11:26 +0000)
commit54b120e4878a3a0e7bce0d9bb770c0d229c0c789
treef50ba89541a4f5a3515cc3644968a6e713f994f4
parent877f88b298f9d91163f6cad1649d03b57544703b
[GStreamer] usec rounding is wrong during accurate seeking
https://bugs.webkit.org/show_bug.cgi?id=90734

Reviewed by Carlos Garcia Campos.

Use floor() to round the microseconds value, this is more robust
than roundf.

* platform/graphics/gstreamer/GStreamerUtilities.cpp:
(WebCore::toGstClockTime):
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::playbackPosition):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/platform/gtk/media/video-frame-accurate-seek-expected.png
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gstreamer/GStreamerUtilities.cpp
Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp