[gstreamer-bugs] [Bug 350419] New: API: GST_SEGMENT_FORMAT printf extension for GstSegments
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Tue Aug 8 05:07:03 PDT 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=350419
GStreamer | gstreamer (core) | Ver: HEAD CVS
Summary: API: GST_SEGMENT_FORMAT printf extension for GstSegments
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: t.i.m at zen.co.uk
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
Currently it's a bit tedious to dump GstSegment info to the debug log, often
involving 5-6 line debug statements.
This could be done much nicer if we registered a printf extension for
GstSegments, then we could just do
GST_DEBUG_OBJECT (dec, "segment now: %" GST_SEGMENT_FORMAT, &dec->segment);
and it would result in something like:
foobar.c(123):bla_sink_event: time segment last_stop=0:00:00.000000500,
start=0:00:00.000000500, stop=0:00:00.000000700, duration=99:99:99.999999999,
rate=-2.000000, applied_rate=-1.000000, flags=0x00000000,
time=0:00:00.000000200, accum=0:00:00.000000800
Patch attached.
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list