GST_MESSAGE_ELEMENT

Shubham Shrivastava shubham333vm at gmail.com
Tue Jul 3 13:31:47 UTC 2018


case GST_MESSAGE_ELEMENT:
{
        const gchar *filename;
        gint index;
        GstClockTime timestamp, stream_time, running_time, duration;
        guint64 offset, offset_end;

        GstStructure *s = gst_message_get_structure (msg);
        filename = gst_structure_get_string (s, "filename");
        gst_structure_get_string (s, "index", &index);
        gst_structure_get_clock_time (s,"timestamp",&timestamp);
        gst_structure_get_clock_time (s,"stream-time",&stream_time);
        gst_structure_get_clock_time (s,"running-time",&running_time);
        gst_structure_get_uint64(s, "offset", &offset)
        gst_structure_get_uint64(s, "offset-end", &offset_end);
}

How to print there value as some of them return boolean value


       gst_structure_get_clock_time (s,"timestamp",&timestamp);
        gst_structure_get_clock_time (s,"stream-time",&stream_time);
        gst_structure_get_clock_time (s,"running-time",&running_time);
        gst_structure_get_uint64(s, "offset", &offset)
        gst_structure_get_uint64(s, "offset-end", &offset_end);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180703/3e5f6002/attachment.html>


More information about the gstreamer-devel mailing list