From: keonho07.kim Date: Mon, 8 Jul 2013 11:00:21 +0000 (+0900) Subject: Duration doesn't change even if it is updated on EOS. X-Git-Tag: submit/tizen_2.2/20130714.131554~31 X-Git-Url: http://review.tizen.org/git/?p=framework%2Fweb%2Fwebkit-efl.git;a=commitdiff_plain;h=28e66cb7214a3873e94ab697a6d8d7b61e262485 Duration doesn't change even if it is updated on EOS. [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 --- diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp index aa648a6..10e346b 100755 --- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp @@ -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();