Title: [148295] trunk/Source/WebCore
Revision
148295
Author
[email protected]
Date
2013-04-12 12:09:23 -0700 (Fri, 12 Apr 2013)

Log Message

(AVFoundation) WebKit fails to detect live stream.
https://bugs.webkit.org/show_bug.cgi?id=114474

Reviewed by Eric Carlson.

Remove a workaround (added by r88944) for an error in an Apple.com _javascript_
media controller. The error has been fixed, and the workaround is causing problems
with other media streams.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::platformDuration):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (148294 => 148295)


--- trunk/Source/WebCore/ChangeLog	2013-04-12 18:57:38 UTC (rev 148294)
+++ trunk/Source/WebCore/ChangeLog	2013-04-12 19:09:23 UTC (rev 148295)
@@ -1,3 +1,17 @@
+2013-04-12  Jer Noble  <[email protected]>
+
+        (AVFoundation) WebKit fails to detect live stream.
+        https://bugs.webkit.org/show_bug.cgi?id=114474
+
+        Reviewed by Eric Carlson.
+
+        Remove a workaround (added by r88944) for an error in an Apple.com _javascript_
+        media controller. The error has been fixed, and the workaround is causing problems
+        with other media streams.
+
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        (WebCore::MediaPlayerPrivateAVFoundationObjC::platformDuration):
+
 2013-04-12  Carlos Garcia Campos  <[email protected]>
 
         [GTK] Split GtkAuthenticationDialog in two widgets

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (148294 => 148295)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-04-12 18:57:38 UTC (rev 148294)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-04-12 19:09:23 UTC (rev 148295)
@@ -578,10 +578,7 @@
         return narrowPrecisionToFloat(CMTimeGetSeconds(cmDuration));
 
     if (CMTIME_IS_INDEFINITE(cmDuration)) {
-        if (![[m_avAsset.get() tracks] count])
-            return 0;
-        else
-            return numeric_limits<float>::infinity();
+        return numeric_limits<float>::infinity();
     }
 
     LOG(Media, "MediaPlayerPrivateAVFoundationObjC::platformDuration(%p) - invalid duration, returning %.0f", this, MediaPlayer::invalidTime());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to