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",×tamp);
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",×tamp);
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);
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel