Bug 803086: Process NULL image chunks in NotifyQueuedTrackChanges() r=ekr

This commit is contained in:
Randell Jesup 2012-10-19 10:58:06 -04:00
parent d04e8b7122
commit 80fe7b4291

View File

@ -595,6 +595,10 @@ void MediaPipelineTransmit::ProcessVideoChunk(VideoSessionConduit *conduit,
VideoChunk& chunk) {
// We now need to send the video frame to the other side
layers::Image *img = chunk.mFrame.GetImage();
if (!img) {
// segment.AppendFrame() allows null images, which show up here as null
return;
}
ImageFormat format = img->GetFormat();