Title: [274807] trunk/Source/WebCore
Revision
274807
Author
drou...@apple.com
Date
2021-03-22 15:08:37 -0700 (Mon, 22 Mar 2021)

Log Message

Fix incorrect fallback values in `PlaybackSessionModelMediaElement` after r274249
https://bugs.webkit.org/show_bug.cgi?id=223584

Reviewed by Eric Carlson.

These values were something I was experimenting with as a way of knowing "has this ever
been changed", but as it turned out there were other ways of achieving this and/or it was
unnecessary to do so.

* platform/cocoa/PlaybackSessionModelMediaElement.mm:
(WebCore::PlaybackSessionModelMediaElement::defaultPlaybackRate const):
(WebCore::PlaybackSessionModelMediaElement::playbackRate const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (274806 => 274807)


--- trunk/Source/WebCore/ChangeLog	2021-03-22 22:06:52 UTC (rev 274806)
+++ trunk/Source/WebCore/ChangeLog	2021-03-22 22:08:37 UTC (rev 274807)
@@ -1,3 +1,18 @@
+2021-03-22  Devin Rousso  <drou...@apple.com>
+
+        Fix incorrect fallback values in `PlaybackSessionModelMediaElement` after r274249
+        https://bugs.webkit.org/show_bug.cgi?id=223584
+
+        Reviewed by Eric Carlson.
+
+        These values were something I was experimenting with as a way of knowing "has this ever
+        been changed", but as it turned out there were other ways of achieving this and/or it was
+        unnecessary to do so.
+
+        * platform/cocoa/PlaybackSessionModelMediaElement.mm:
+        (WebCore::PlaybackSessionModelMediaElement::defaultPlaybackRate const):
+        (WebCore::PlaybackSessionModelMediaElement::playbackRate const):
+
 2021-03-22  Jean-Yves Avenard  <j...@apple.com>
 
         Always perform image decoding in the web content process.

Modified: trunk/Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm (274806 => 274807)


--- trunk/Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm	2021-03-22 22:06:52 UTC (rev 274806)
+++ trunk/Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm	2021-03-22 22:08:37 UTC (rev 274807)
@@ -477,12 +477,12 @@
 
 float PlaybackSessionModelMediaElement::defaultPlaybackRate() const
 {
-    return m_mediaElement ? m_mediaElement->defaultPlaybackRate() : -1;
+    return m_mediaElement ? m_mediaElement->defaultPlaybackRate() : 0;
 }
 
 float PlaybackSessionModelMediaElement::playbackRate() const
 {
-    return m_mediaElement ? m_mediaElement->playbackRate() : -1;
+    return m_mediaElement ? m_mediaElement->playbackRate() : 0;
 }
 
 Ref<TimeRanges> PlaybackSessionModelMediaElement::seekableRanges() const
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to