Duration doesn't change even if it is updated on EOS.
authorkeonho07.kim <keonho07.kim@samsung.com>
Mon, 8 Jul 2013 11:00:21 +0000 (20:00 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 9 Jul 2013 07:56:32 +0000 (07:56 +0000)
[Title] Duration doesn't change even if it is updated on EOS.
[Problem] N/A
[Cause] In stream mode, there is updating of duration value.
[Solution] now >= duration needs to update duration on HTMLMediaElement.

Change-Id: I8b8f81ff10a7c70200640000a3ea42e1caf23bf3

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();