[Bug 696885] gst printf specifier extensions can conflict with other libraries 'Q' modifier

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Mar 30 13:42:09 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=696885
  GStreamer | gstreamer (core) | 1.x

--- Comment #5 from David Schleef <ds at schleef.org> 2013-03-30 20:42:05 UTC ---
I mentioned changing away from %Q on IRC without thinking it through, and yes,
it is an ABI break.

The best solution, IMO, is to add our own printf implementation for debugging
OR do the same in GLib.  GLib's printf implementation is small in the grand
scheme of things.

A really cool solution would be to make %P work for any GType, with libraries
adding a debug serialization to the type if they wish.  Gst would do that for
GstCaps, GLib would do an generic one for GObjects.

A generic solution for glib-based printf extension would require registering a
4-char code with the printf extension, in order to avoid conflicts.  Thus, for
segments, we'd register %Qgst1, %Qgst2 for GstClockTime, etc.

-- 
Configure bugmail: https://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