Fix issue that timeline goes back to end when try to seek an arbitary position after...
authoreojin.ham <eojin.ham@samsung.com>
Tue, 14 May 2013 04:42:06 +0000 (13:42 +0900)
committereojin.ham <eojin.ham@samsung.com>
Tue, 14 May 2013 04:42:06 +0000 (13:42 +0900)
[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

Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

index d8b2a89..a5e098c 100755 (executable)
@@ -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;