Commit a6a8c2b5 authored by Nicolas Dufresne's avatar Nicolas Dufresne
Browse files

v4l2videodec: Cleanly fail if set_format is never called

parent a8e81bd8
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment