Duration doesn't change even if it is updated on EOS.
[framework/web/webkit-efl.git] / Source / WebCore / platform / graphics / gstreamer / MediaPlayerPrivateGStreamer.cpp
index aa648a6..10e346b 100755 (executable)
@@ -1737,7 +1737,11 @@ void MediaPlayerPrivateGStreamer::didEnd()
     // HTMLMediaElement. In some cases like reverse playback the
     // position is not always reported as 0 for instance.
     float now = currentTime();
+#if ENABLE(TIZEN_GSTREAMER_VIDEO)
+    if (now > 0 && now >= duration() && m_mediaDuration != now) {
+#else
     if (now > 0 && now <= duration() && m_mediaDuration != now) {
+#endif
         m_mediaDurationKnown = true;
         m_mediaDuration = now;
         m_player->durationChanged();