mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
capssetter: Prevent unneeded caps copying and allocation
This commit is contained in:
parent
766c5b22ed
commit
56062768af
1 changed files with 2 additions and 2 deletions
|
@ -204,9 +204,9 @@ gst_caps_setter_transform_caps (GstBaseTransform * trans,
|
|||
/* pass filter caps upstream, or any if no filter */
|
||||
if (direction != GST_PAD_SINK) {
|
||||
if (!cfilter || gst_caps_is_empty (cfilter)) {
|
||||
return gst_caps_new_any ();
|
||||
return gst_caps_ref (GST_CAPS_ANY);
|
||||
} else {
|
||||
return gst_caps_copy (cfilter);
|
||||
return gst_caps_ref (cfilter);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue