index 997b41a7d3799e651a785b1cc42d043cbac1da12..8ba1b0998be9aa888223f88f76140e5986ffb8d7 100644 (file)
sstr = g_strdup ("");
src->last_message =
- g_strdup_printf ("event ******* E (type: %d, %s) %p",
+ g_strdup_printf ("event ******* (%s:%s) E (type: %d, %s) %p",
+ GST_DEBUG_PAD_NAME (GST_BASE_SRC_CAST (src)->srcpad),
GST_EVENT_TYPE (event), sstr, event);
g_free (sstr);
GST_OBJECT_UNLOCK (src);
if (!src->silent) {
gchar ts_str[64], dur_str[64];
+ gchar flag_str[100];
GST_OBJECT_LOCK (src);
g_free (src->last_message);
g_strlcpy (dur_str, "none", sizeof (dur_str));
}
+ {
+ const char *flag_list[12] = {
+ "ro", "media4", "", "",
+ "preroll", "discont", "incaps", "gap",
+ "delta_unit", "media1", "media2", "media3"
+ };
+ int i;
+ char *end = flag_str;
+ end[0] = '\0';
+ for (i = 0; i < 12; i++) {
+ if (GST_MINI_OBJECT_CAST (buf)->flags & (1 << i)) {
+ strcpy (end, flag_list[i]);
+ end += strlen (end);
+ end[0] = ' ';
+ end[1] = '\0';
+ end++;
+ }
+ }
+ }
+
src->last_message =
- g_strdup_printf ("get ******* > (%5d bytes, timestamp: %s"
+ g_strdup_printf ("create ******* (%s:%s) (%u bytes, timestamp: %s"
", duration: %s, offset: %" G_GINT64_FORMAT ", offset_end: %"
- G_GINT64_FORMAT ", flags: %d) %p", GST_BUFFER_SIZE (buf), ts_str,
- dur_str, GST_BUFFER_OFFSET (buf), GST_BUFFER_OFFSET_END (buf),
- GST_MINI_OBJECT (buf)->flags, buf);
+ G_GINT64_FORMAT ", flags: %d %s) %p",
+ GST_DEBUG_PAD_NAME (GST_BASE_SRC_CAST (src)->srcpad),
+ GST_BUFFER_SIZE (buf), ts_str, dur_str, GST_BUFFER_OFFSET (buf),
+ GST_BUFFER_OFFSET_END (buf), GST_MINI_OBJECT (buf)->flags, flag_str,
+ buf);
GST_OBJECT_UNLOCK (src);
#if !GLIB_CHECK_VERSION(2,26,0)