When previous duration is 0, it skips durationchanged evnet.
authorKeonHo Kim <keonho07.kim@samsung.com>
Wed, 23 Oct 2013 02:55:54 +0000 (11:55 +0900)
committerKeonHo Kim <keonho07.kim@samsung.com>
Wed, 23 Oct 2013 02:56:02 +0000 (11:56 +0900)
[Title] When previous duration is 0, it skips durationchanged evnet.
[Problem] N_SE-55543
[Cause] previousDuration condition make it skip event.
[Solution] Bug fixed.

Change-Id: I07d35c30de6c5f9e503fe82a0d4ef5fc2abdd97b

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

index 31ac3a6..cfbe6f6 100755 (executable)
@@ -1879,7 +1879,7 @@ void MediaPlayerPrivateGStreamer::durationChanged()
     // Avoid emiting durationchanged in the case where the previous
     // duration was 0 because that case is already handled by the
     // HTMLMediaElement.
-    if (previousDuration && m_mediaDuration != previousDuration)
+    if (m_mediaDuration != previousDuration)
         m_player->durationChanged();
 
     if (m_preload == MediaPlayer::None && m_originalPreloadWasAutoAndWasOverridden) {