From b5deb532fe92c00c8e7b506bc3dfabf6f0e5383c Mon Sep 17 00:00:00 2001 From: "eojin.ham" Date: Tue, 14 May 2013 13:42:06 +0900 Subject: [PATCH] Fix issue that timeline goes back to end when try to seek an arbitary position after playback is finished. [Title] Fix issue that timeline goes back to end when try to seek an arbitary position after playback is finished. [Problem] N_SE-38230 [Cause] playbackPosition() method return m_mediaDuration when end of file was reached. [Solution] Fix for playbackPosition() to return queried result even end of file was reached. Change-Id: I4b26cad8400fb0b0be4142f7eb63613dcce03a71 --- .../platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp index d8b2a89..a5e098c 100755 --- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp @@ -517,8 +517,11 @@ float MediaPlayerPrivateGStreamer::playbackPosition() const // what the Media element spec expects us to do. if (m_seeking) return m_seekTime; +#if !ENABLE(TIZEN_GSTREAMER_VIDEO) + // We don't set pipeline state to NULL when end of file is reached. if (m_mediaDuration) return m_mediaDuration; +#endif } float ret = 0.0f; -- 2.7.4