Title: [170533] trunk/Source/WebCore
Revision
170533
Author
[email protected]
Date
2014-06-27 10:06:57 -0700 (Fri, 27 Jun 2014)

Log Message

removeCodedFrames should modify ref to TrackBuffer no a copy.
https://bugs.webkit.org/show_bug.cgi?id=134380

Patch by Jeremy Jones <[email protected]> on 2014-06-27
Reviewed by Daniel Bates.

* Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::removeCodedFrames):
Iterate with a reference.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (170532 => 170533)


--- trunk/Source/WebCore/ChangeLog	2014-06-27 16:55:34 UTC (rev 170532)
+++ trunk/Source/WebCore/ChangeLog	2014-06-27 17:06:57 UTC (rev 170533)
@@ -1,3 +1,14 @@
+2014-06-27  Jeremy Jones  <[email protected]>
+
+        removeCodedFrames should modify ref to TrackBuffer no a copy.
+        https://bugs.webkit.org/show_bug.cgi?id=134380
+
+        Reviewed by Daniel Bates.
+
+        * Modules/mediasource/SourceBuffer.cpp:
+        (WebCore::SourceBuffer::removeCodedFrames):
+        Iterate with a reference.
+
 2014-06-27  Zalan Bujtas  <[email protected]>
 
         Set cliprect radius unconditionally in RenderLayer.

Modified: trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp (170532 => 170533)


--- trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp	2014-06-27 16:55:34 UTC (rev 170532)
+++ trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp	2014-06-27 17:06:57 UTC (rev 170533)
@@ -553,7 +553,7 @@
 
     // 2. Let end be the end presentation timestamp for the removal range.
     // 3. For each track buffer in this source buffer, run the following steps:
-    for (auto iter : m_trackBufferMap) {
+    for (auto& iter : m_trackBufferMap) {
         TrackBuffer& trackBuffer = iter.value;
 
         // 3.1. Let remove end timestamp be the current value of duration
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to