mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
v4l2videodec: Cleanly fail if set_format is never called
This commit is contained in:
parent
a8e81bd81e
commit
a6a8c2b5eb
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue