Corrupted buffers not handled
Created by: ndufresne
When a buffer is dequeued, it may be marked as corrupted (V4L2_BUF_FLAG_ERROR). When this is the case, pipewire should validate the used size and drop the buffer if the image is not large enough. It should also be dropped if the content is encoded (jpeg). When this occurs, we get the following fatal error in cheese:
0:00:09.446223695 31562 0x556915360b20 ERROR default video-frame.c:176:gst_video_frame_map_id: invalid buffer size 0 < 720000
0:00:09.446301194 31562 0x556915360b20 ERROR cluttervideosink clutter-gst-video-sink.c:1508:clutter_gst_i420_upload:<cluttergstvideosink0> Could not map incoming video frame
Edited by Wim Taymans