v4l2: videodec: Remove the spurious srccaps probe

We don't need to probe the srccaps in set_format() anymore, this
handled already in the capture thread while setting up the capture
queue.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4525>
This commit is contained in:
Nicolas Dufresne 2023-04-18 11:42:06 -04:00 committed by GStreamer Marge Bot
parent 0900b41d00
commit 01c9e10529

View file

@ -304,14 +304,6 @@ gst_v4l2_video_dec_set_format (GstVideoDecoder * decoder,
}
ret = gst_v4l2_object_set_format (self->v4l2output, state->caps, &error);
gst_caps_replace (&self->probed_srccaps, NULL);
self->probed_srccaps = gst_v4l2_object_probe_caps (self->v4l2capture,
gst_v4l2_object_get_raw_caps ());
if (gst_caps_is_empty (self->probed_srccaps))
goto no_raw_format;
if (ret)
self->input_state = gst_video_codec_state_ref (state);
else
@ -319,12 +311,6 @@ gst_v4l2_video_dec_set_format (GstVideoDecoder * decoder,
done:
return ret;
no_raw_format:
GST_ELEMENT_ERROR (self, RESOURCE, SETTINGS,
(_("Decoder on device %s has no supported output format"),
self->v4l2output->videodev), (NULL));
return GST_FLOW_ERROR;
}
static gboolean