v4l2videodec: silennce some maybe-uninitialized warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7875>
This commit is contained in:
Matthew Waters 2024-11-13 16:56:22 +11:00
parent 7b526775b4
commit d98c83b297

View file

@ -631,7 +631,7 @@ gst_v4l2_video_dec_finish (GstVideoDecoder * decoder)
pending_frames = gst_video_decoder_get_frames (decoder);
if (pending_frames) {
int counter = 0;
guint32 first, last;
guint32 first = 0, last = 0;
for (GList * g = pending_frames; g; g = g->next) {
GstVideoCodecFrame *frame = g->data;
g->data = NULL;