How to set and get user_data for GstBuffer?

Hunter zhangyanping210 at yahoo.com.cn
Mon Mar 11 02:42:21 PDT 2013


Hello Wim,

    It works.

     Set:
     GstMiniObject* miniObject = reinterpret_cast<GstMiniObject*>(buffer);
    gst_mini_object_set_qdata(miniObject,
g_quark_from_static_string(webkitGstMapInfoQuarkString), mapInfo, 0);

     Get:
     GstMapInfo* mapInfo =
static_cast<GstMapInfo*>(gst_mini_object_get_qdata(miniObject,
g_quark_from_static_string(webkitGstMapInfoQuarkString)));


        Thanks for your rapid replay.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-set-and-get-user-data-for-GstBuffer-tp4659031p4659033.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list