Duration doesn't change even if it is updated on EOS(additional).
authorkeonho <keonho@keonho-Samsung-DeskTop-System.(none)>
Thu, 11 Jul 2013 12:34:55 +0000 (21:34 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 11 Jul 2013 23:01:38 +0000 (23:01 +0000)
[Title] Duration doesn't change even if it is updated on EOS(additional).
[Problem] N/A
[Cause] In stream mode, there is updating of duration value.
[Solution] now != duration needs to update duration on HTMLMediaElement.

Change-Id: I801151e8431c2afd7569500116332e76d6ed4982

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

index 10e346b..b42a302 100755 (executable)
@@ -1738,7 +1738,7 @@ void MediaPlayerPrivateGStreamer::didEnd()
     // 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) {
+    if (now > 0 && now != duration()) {
 #else
     if (now > 0 && now <= duration() && m_mediaDuration != now) {
 #endif