[macOS Capture] SampleBufferTransformer: CHECK that "sample" is MJPEG.
In https://crbug.com/1148964 it was discovered that assumptions that SampleBufferTransformer was making did not always hold. For example, SBT assumed that if the camera produced pixel buffers then those pixels buffers would contain IOSurfaces, but this was not always the case. This was fixed so now I'm looking at other assumptions. Similarly, SBT assumes that if the camera produces a SampleBuffer that doesn't have a pixel buffer, this must be the MJPEG case. This CL promotes a DCHECK for this into a CHECK so that we don't run the risk of having hard-to-debug crashes happening if there are any cameras out there in the wild where this does not hold (hopefully not). Bug: chromium:1148964 Change-Id: I3e063dd7ed48962d31c7fd46a9a66de7e8337498 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2554597 Commit-Queue: Henrik Boström <hbos@chromium.org> Commit-Queue: Markus Handell <handellm@google.com> Auto-Submit: Henrik Boström <hbos@chromium.org> Reviewed-by:Markus Handell <handellm@google.com> Cr-Commit-Position: refs/heads/master@{#830135}
Showing
Please register or sign in to comment