mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
rtpbasepayload: Use gst_value_array_append_and_take_value()
as a micro optimization
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6163>
This commit is contained in:
parent
ea261a58e0
commit
08d4527d22
1 changed files with 1 additions and 2 deletions
|
@ -1656,8 +1656,7 @@ gst_rtp_base_payload_get_extensions (GstRTPBasePayload * payload,
|
|||
|
||||
g_value_set_object (&value, g_ptr_array_index (extensions, i));
|
||||
|
||||
gst_value_array_append_value (out_value, &value);
|
||||
g_value_unset (&value);
|
||||
gst_value_array_append_and_take_value (out_value, &value);
|
||||
}
|
||||
|
||||
GST_OBJECT_UNLOCK (payload);
|
||||
|
|
Loading…
Reference in a new issue