[0.11] gstreamer: info: also debug position of segment
Wim Taymans
wtay at kemper.freedesktop.org
Fri Feb 17 15:05:01 PST 2012
Module: gstreamer
Branch: 0.11
Commit: 7fc783f723b16bf6ff3a9ea0a2bd9acd6fab458f
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=7fc783f723b16bf6ff3a9ea0a2bd9acd6fab458f
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Sat Feb 18 00:03:13 2012 +0100
info: also debug position of segment
---
gst/gstinfo.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/gst/gstinfo.c b/gst/gstinfo.c
index db75e96..2cb25f0 100644
--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
@@ -725,10 +725,12 @@ gst_debug_print_segment (gpointer ptr)
case GST_FORMAT_TIME:{
return g_strdup_printf ("time segment start=%" GST_TIME_FORMAT
", stop=%" GST_TIME_FORMAT ", rate=%f, applied_rate=%f"
- ", flags=0x%02x, time=%" GST_TIME_FORMAT ", base=%" GST_TIME_FORMAT,
+ ", flags=0x%02x, time=%" GST_TIME_FORMAT ", base=%" GST_TIME_FORMAT
+ ", position %" GST_TIME_FORMAT,
GST_TIME_ARGS (segment->start), GST_TIME_ARGS (segment->stop),
segment->rate, segment->applied_rate, (guint) segment->flags,
- GST_TIME_ARGS (segment->time), GST_TIME_ARGS (segment->base));
+ GST_TIME_ARGS (segment->time), GST_TIME_ARGS (segment->base),
+ GST_TIME_ARGS (segment->position));
}
default:{
const gchar *format_name;
@@ -738,10 +740,11 @@ gst_debug_print_segment (gpointer ptr)
format_name = "(UNKNOWN FORMAT)";
return g_strdup_printf ("%s segment start=%" G_GINT64_FORMAT
", stop=%" G_GINT64_FORMAT ", rate=%f, applied_rate=%f"
- ", flags=0x%02x, time=%" GST_TIME_FORMAT ", base=%" GST_TIME_FORMAT,
+ ", flags=0x%02x, time=%" G_GINT64_FORMAT ", base=%" G_GINT64_FORMAT
+ ", position %" G_GINT64_FORMAT,
format_name, segment->start, segment->stop, segment->rate,
segment->applied_rate, (guint) segment->flags,
- GST_TIME_ARGS (segment->time), GST_TIME_ARGS (segment->base));
+ segment->time, segment->base, segment->position);
}
}
}
More information about the gstreamer-commits
mailing list