Title: [212701] trunk/Source/WebCore
Revision
212701
Author
achristen...@apple.com
Date
2017-02-20 22:37:06 -0800 (Mon, 20 Feb 2017)

Log Message

Fix some 32-bit builds after r212699

* platform/mediastream/mac/RealtimeIncomingVideoSource.cpp:
(WebCore::RealtimeIncomingVideoSource::OnFrame):
Explicitly cast OSStatus to int for logging.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (212700 => 212701)


--- trunk/Source/WebCore/ChangeLog	2017-02-21 05:51:36 UTC (rev 212700)
+++ trunk/Source/WebCore/ChangeLog	2017-02-21 06:37:06 UTC (rev 212701)
@@ -1,3 +1,11 @@
+2017-02-20  Alex Christensen  <achristen...@webkit.org>
+
+        Fix some 32-bit builds after r212699
+
+        * platform/mediastream/mac/RealtimeIncomingVideoSource.cpp:
+        (WebCore::RealtimeIncomingVideoSource::OnFrame):
+        Explicitly cast OSStatus to int for logging.
+
 2017-02-20  Joseph Pecoraro  <pecor...@apple.com>
 
         Remove unnecessary PerformanceEntry virtual methods

Modified: trunk/Source/WebCore/platform/mediastream/mac/RealtimeIncomingVideoSource.cpp (212700 => 212701)


--- trunk/Source/WebCore/platform/mediastream/mac/RealtimeIncomingVideoSource.cpp	2017-02-21 05:51:36 UTC (rev 212700)
+++ trunk/Source/WebCore/platform/mediastream/mac/RealtimeIncomingVideoSource.cpp	2017-02-21 06:37:06 UTC (rev 212701)
@@ -110,7 +110,7 @@
     CMVideoFormatDescriptionRef formatDescription;
     OSStatus ostatus = CMVideoFormatDescriptionCreateForImageBuffer(kCFAllocatorDefault, (CVImageBufferRef)pixelBuffer, &formatDescription);
     if (ostatus != noErr) {
-        LOG_ERROR("Failed to initialize CMVideoFormatDescription: %d", ostatus);
+        LOG_ERROR("Failed to initialize CMVideoFormatDescription: %d", static_cast<int>(ostatus));
         return;
     }
 
@@ -117,7 +117,7 @@
     CMSampleBufferRef sampleBuffer;
     ostatus = CMSampleBufferCreateReadyWithImageBuffer(kCFAllocatorDefault, (CVImageBufferRef)pixelBuffer, formatDescription, &timingInfo, &sampleBuffer);
     if (ostatus != noErr) {
-        LOG_ERROR("Failed to create the sample buffer: %d", ostatus);
+        LOG_ERROR("Failed to create the sample buffer: %d", static_cast<int>(ostatus));
         return;
     }
     CFRelease(formatDescription);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to