mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +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/4437>
This commit is contained in:
parent
4a53beeb1f
commit
f58d5dfd30
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);
|
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)
|
if (ret)
|
||||||
self->input_state = gst_video_codec_state_ref (state);
|
self->input_state = gst_video_codec_state_ref (state);
|
||||||
else
|
else
|
||||||
|
@ -319,12 +311,6 @@ gst_v4l2_video_dec_set_format (GstVideoDecoder * decoder,
|
||||||
|
|
||||||
done:
|
done:
|
||||||
return ret;
|
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
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue