Commit 77937f93 authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey Committed by GStreamer Marge Bot
Browse files

videoparse: rename from _free to _clear

The function does not free the structure but the data
contained within.

Part-of: <gstreamer/gstreamer!1458>
parent efb8c538
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment