GNOME Bugzilla – Bug 695756
gst_buffer_make_writable will lost the user_data
Last modified: 2013-03-14 06:53:51 UTC
Hello everyone, The code is like this: gst_mini_object_set_qdata( GST_MINI_OBJECT(buffer), g_quark_from_static_string("avl_video_display_frame"), ptr, 0); buffer = gst_buffer_make_writable(buffer); And then the user_data I set to the buffer is lost. ================================ #define gst_buffer_is_writable(buf) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (buf)) gst_mini_object_copy-->_gst_buffer_copy-->gst_buffer_copy_into Should gst_buffer_copy_into copy qdata of gstminiobject ? Is this a bug?
The qdata is never copied, it belongs to the unique miniobject you set it on.
GstMeta is for stuff that might be copied to other buffer instances, qdata is object-specific.
Thank you guys !