mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
0900b41d00
commit
01c9e10529
1 changed files with 0 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue