[Bug 760267] tracer: how to pass and structure tracing data (GstStructure, GVariant, etc.)
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Sun Jan 10 04:18:26 PST 2016
https://bugzilla.gnome.org/show_bug.cgi?id=760267
--- Comment #6 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
That's hilarious, admittedly not what I expected (there must be something very
silly going on in GVariant), but ultimately not important :)
The point I was trying to make however is not just GVariant vs. GstStructure,
but that we should create an API where we can make the implementation fast if
we want to or need to, by doing something custom there. Whether we internally
use GVariant/GstStructure for starters doesn't matter so much to me. If we
expose GVariant/GstStructure in the API we don't have that option any more.
I think both the GstStructure-style triplet vararg API or the GVariant-style
format + args vararg API would be fine, as long as we restrict the types that
can be passed to it.
The other consideration is output size. The GVariant output (ASCII or binary)
is about a third of the serialized GstStructure string. In order to make this
scale and work well with non-trivial pipelines over the network or on embedded
devices, we will have to make sure we output as little as possible. This can
still be changed later though, and doesn't indicate which API to go for either.
--
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