v4l2videodec: Cleanly fail if set_format is never called

This commit is contained in:
Nicolas Dufresne 2014-03-19 17:52:08 -04:00
parent a8e81bd81e
commit a6a8c2b5eb

View file

@ -444,6 +444,8 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
goto flushing; goto flushing;
if (G_UNLIKELY (!GST_V4L2_IS_ACTIVE (self->v4l2output))) { 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)) if (!gst_v4l2_object_set_format (self->v4l2output, self->input_state->caps))
goto not_negotiated; goto not_negotiated;
} }