From a6a8c2b5eb7c208cc65c489671d556c4d0948d33 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 19 Mar 2014 17:52:08 -0400 Subject: [PATCH] v4l2videodec: Cleanly fail if set_format is never called --- sys/v4l2/gstv4l2videodec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/v4l2/gstv4l2videodec.c b/sys/v4l2/gstv4l2videodec.c index 9fad0a25e7..56a116e216 100644 --- a/sys/v4l2/gstv4l2videodec.c +++ b/sys/v4l2/gstv4l2videodec.c @@ -444,6 +444,8 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder, goto flushing; if (G_UNLIKELY (!GST_V4L2_IS_ACTIVE (self->v4l2output))) { + if (!self->input_state) + goto not_negotiated; if (!gst_v4l2_object_set_format (self->v4l2output, self->input_state->caps)) goto not_negotiated; }