mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
videoparse: rename from _free to _clear
The function does not free the structure but the data contained within. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1458>
This commit is contained in:
parent
efb8c5381c
commit
77937f9398
3 changed files with 7 additions and 7 deletions
|
@ -212,7 +212,7 @@ gst_h264_parse_finalize (GObject * object)
|
|||
{
|
||||
GstH264Parse *h264parse = GST_H264_PARSE (object);
|
||||
|
||||
gst_video_user_data_unregistered_free (&h264parse->user_data_unregistered);
|
||||
gst_video_user_data_unregistered_clear (&h264parse->user_data_unregistered);
|
||||
|
||||
g_object_unref (h264parse->frame_out);
|
||||
|
||||
|
|
|
@ -452,7 +452,7 @@ gst_video_parse_user_data_unregistered (GstElement * elt,
|
|||
GstVideoParseUserDataUnregistered * user_data,
|
||||
GstByteReader * br, guint8 uuid[16])
|
||||
{
|
||||
gst_video_user_data_unregistered_free (user_data);
|
||||
gst_video_user_data_unregistered_clear (user_data);
|
||||
|
||||
memcpy (&user_data->uuid, uuid, 16);
|
||||
user_data->size = gst_byte_reader_get_size (br);
|
||||
|
@ -460,13 +460,13 @@ gst_video_parse_user_data_unregistered (GstElement * elt,
|
|||
}
|
||||
|
||||
/*
|
||||
* gst_video_user_data_unregistered_free:
|
||||
* gst_video_user_data_unregistered_clear:
|
||||
* @user_data: #GstVideoParseUserDataUnregistered holding SEI User Data Unregistered
|
||||
*
|
||||
* Frees the user data unregistered
|
||||
* Clears the user data unregistered
|
||||
*/
|
||||
void
|
||||
gst_video_user_data_unregistered_free (GstVideoParseUserDataUnregistered *
|
||||
gst_video_user_data_unregistered_clear (GstVideoParseUserDataUnregistered *
|
||||
user_data)
|
||||
{
|
||||
g_free (user_data->data);
|
||||
|
@ -489,6 +489,6 @@ gst_video_push_user_data_unregistered (GstElement * elt,
|
|||
if (user_data->data != NULL) {
|
||||
gst_buffer_add_video_sei_user_data_unregistered_meta (buf, user_data->uuid,
|
||||
user_data->data, user_data->size);
|
||||
gst_video_user_data_unregistered_free (user_data);
|
||||
gst_video_user_data_unregistered_clear (user_data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ void gst_video_parse_user_data(GstElement * elt, GstVideoParseUserData * user_da
|
|||
void gst_video_parse_user_data_unregistered(GstElement * elt, GstVideoParseUserDataUnregistered * user_data,
|
||||
GstByteReader * br, guint8 uuid[16]);
|
||||
|
||||
void gst_video_user_data_unregistered_free(GstVideoParseUserDataUnregistered * user_data);
|
||||
void gst_video_user_data_unregistered_clear(GstVideoParseUserDataUnregistered * user_data);
|
||||
|
||||
void gst_video_push_user_data(GstElement * elt, GstVideoParseUserData * user_data,
|
||||
GstBuffer * buf);
|
||||
|
|
Loading…
Reference in a new issue