Fix the issue that duration is not updated.
authoreojin.ham <eojin.ham@samsung.com>
Fri, 19 Jul 2013 10:50:41 +0000 (19:50 +0900)
committereojin.ham <eojin.ham@samsung.com>
Fri, 19 Jul 2013 10:50:41 +0000 (19:50 +0900)
[Title] Fix the issue that duration is not updated.
[Problem] N_SE-46482
          Duration is not updated when repeating enter and exit page has specific audio tag.
[Cause] Source of <audio> is Video file.
        And it wasn't suspended when exit page. Because it is audio tag and this app support background mode.
[Solution] Suspend <audio> element if it has video source.

Change-Id: Iba615fa0a007eac5d2ba01cb1d4e91a28fd22c84

Source/WebCore/html/HTMLMediaElement.cpp

index 118c94d..d9bec51 100755 (executable)
@@ -4789,7 +4789,10 @@ bool HTMLMediaElement::shouldSuspendMedia()
     if (!m_player)
         return false;
 
-    if (isVideo() || hasVideo())
+    if (isVideo())
+        return true;
+
+    if (m_player->hasVideo())
         return true;
 
 #if ENABLE(TIZEN_EXTENSIBLE_API)