Revert "Fix issue that timeline goes back to 00:00 during pressing FF button repeatly"
authorKihong Kwon <kihong.kwon@samsung.com>
Fri, 10 May 2013 04:53:33 +0000 (13:53 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 10 May 2013 04:53:33 +0000 (13:53 +0900)
This reverts commit 00ede0f7183a638b8e04adb15a6cfb24e17b0e6b

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

index 050cbc0..d8b2a89 100755 (executable)
@@ -510,10 +510,6 @@ void MediaPlayerPrivateGStreamer::commitLoad()
 
 float MediaPlayerPrivateGStreamer::playbackPosition() const
 {
-#if ENABLE(TIZEN_GSTREAMER_VIDEO)
-     static float cachedTime;
-#endif
-
     if (m_isEndReached) {
         // Position queries on a null pipeline return 0. If we're at
         // the end of the stream the pipeline is null but we want to
@@ -531,11 +527,7 @@ float MediaPlayerPrivateGStreamer::playbackPosition() const
     if (!gst_element_query(m_playBin.get(), query)) {
         LOG_MEDIA_MESSAGE("Position query failed...");
         gst_query_unref(query);
-#if ENABLE(TIZEN_GSTREAMER_VIDEO)
-        return cachedTime;
-#else
         return ret;
-#endif
     }
 
     gint64 position;
@@ -546,9 +538,6 @@ float MediaPlayerPrivateGStreamer::playbackPosition() const
     if (position != static_cast<gint64>(GST_CLOCK_TIME_NONE))
         ret = static_cast<double>(position) / GST_SECOND;
 
-#if ENABLE(TIZEN_GSTREAMER_VIDEO)
-    cachedTime = ret;
-#endif
     LOG_MEDIA_MESSAGE("Position %" GST_TIME_FORMAT, GST_TIME_ARGS(position));
 
     gst_query_unref(query);