mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
audioenc/dec: Avoid adding temporary structure
As a minor optimisation Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3673>
This commit is contained in:
parent
e03a10a0f2
commit
f97ff39358
1 changed files with 1 additions and 3 deletions
|
@ -51,7 +51,6 @@ __gst_audio_element_proxy_caps (GstElement * element, GstCaps * templ_caps,
|
|||
const GstStructure *caps_s = gst_caps_get_structure (caps, j);
|
||||
const GValue *val;
|
||||
GstStructure *s;
|
||||
GstCaps *tmp = gst_caps_new_empty ();
|
||||
|
||||
s = gst_structure_new_id_empty (q_name);
|
||||
if ((val = gst_structure_get_value (caps_s, "rate")))
|
||||
|
@ -61,9 +60,8 @@ __gst_audio_element_proxy_caps (GstElement * element, GstCaps * templ_caps,
|
|||
if ((val = gst_structure_get_value (caps_s, "channels-mask")))
|
||||
gst_structure_set_value (s, "channels-mask", val);
|
||||
|
||||
gst_caps_append_structure_full (tmp, s,
|
||||
result = gst_caps_merge_structure_full (result, s,
|
||||
gst_caps_features_copy (features));
|
||||
result = gst_caps_merge (result, tmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue