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:
Sebastian Dröge 2024-02-21 13:22:30 +02:00 committed by GStreamer Marge Bot
parent ea261a58e0
commit 08d4527d22

View file

@ -1656,8 +1656,7 @@ gst_rtp_base_payload_get_extensions (GstRTPBasePayload * payload,
g_value_set_object (&value, g_ptr_array_index (extensions, i)); g_value_set_object (&value, g_ptr_array_index (extensions, i));
gst_value_array_append_value (out_value, &value); gst_value_array_append_and_take_value (out_value, &value);
g_value_unset (&value);
} }
GST_OBJECT_UNLOCK (payload); GST_OBJECT_UNLOCK (payload);