gst-plugins-good (v4l2) request for backports from master to future 1.20.2
Needed for Raspbery Pi GPU video decoding:
If not already planned please add these to future 1.20.2
(Tested on RPi (manjaro) to work as patches to 1.20.0, and apply to 1.20.1)
If possible, also silence the (annoying) warning at line 727 of v4l2/gstv4l2videodec.c (it seems that this can be triggered by latency in the stream). v4l2h264dec plugin is broken without these patches.
if (frame) {
GstVideoCodecFrame *oldest_frame;
gboolean warned = FALSE; <----------------- set to TRUE in 1.20.2?
/* Garbage collect old frames in case of codec bugs */
while ((oldest_frame = gst_video_decoder_get_oldest_frame (decoder)) &&
check_system_frame_number_too_old (frame->system_frame_number,
oldest_frame->system_frame_number)) {
gst_video_decoder_drop_frame (decoder, oldest_frame);
oldest_frame = NULL;
if (!warned) {
g_warning ("%s: Too old frames, bug in decoder -- please file a bug", <------the warning
GST_ELEMENT_NAME (decoder));
warned = TRUE;
}
}