mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
gstpad: directly set the caps when pushing buffer with different caps.
This check is not necesarry as we are not negotiating anymore. And it can be wrong if upstream can't produce this caps anymore, but downstream can process them fine.
This commit is contained in:
parent
ed1247b561
commit
053ada3308
1 changed files with 1 additions and 1 deletions
|
@ -4344,7 +4344,7 @@ gst_pad_push_data (GstPad * pad, gboolean is_buffer, void *data)
|
||||||
GST_DEBUG_OBJECT (pad,
|
GST_DEBUG_OBJECT (pad,
|
||||||
"caps changed from %" GST_PTR_FORMAT " to %p %" GST_PTR_FORMAT,
|
"caps changed from %" GST_PTR_FORMAT " to %p %" GST_PTR_FORMAT,
|
||||||
GST_PAD_CAPS (pad), caps, caps);
|
GST_PAD_CAPS (pad), caps, caps);
|
||||||
if (G_UNLIKELY (!gst_pad_configure_src (pad, caps, TRUE)))
|
if (G_UNLIKELY (!gst_pad_set_caps (pad, caps)))
|
||||||
goto not_negotiated;
|
goto not_negotiated;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue