mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 13:21:16 +00:00
basetransform: Fall back to upstream provided caps if fixation of suggested caps failed
This commit is contained in:
parent
26a1ac0ce7
commit
aad7225eb5
1 changed files with 5 additions and 2 deletions
|
@ -1937,8 +1937,11 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size,
|
|||
gst_pad_fixate_caps (GST_BASE_TRANSFORM_SINK_PAD (trans), sink_suggest);
|
||||
|
||||
if (!gst_caps_is_fixed (sink_suggest)) {
|
||||
gst_caps_unref (sink_suggest);
|
||||
sink_suggest = NULL;
|
||||
GST_DEBUG_OBJECT (trans,
|
||||
"Impossible to fixate caps, using upstream caps");
|
||||
gst_caps_replace (&sink_suggest, caps);
|
||||
size_suggest = size;
|
||||
suggest = FALSE;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (trans, "Caps fixed to: %" GST_PTR_FORMAT,
|
||||
|
|
Loading…
Reference in a new issue