[Bug 748233] New: Add support for a format-specifier to GstObject names for uniqueness
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Apr 21 01:29:08 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=748233
Bug ID: 748233
Summary: Add support for a format-specifier to GstObject names
for uniqueness
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: enhancement
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: nirbheek.chauhan at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 302051
--> https://bugzilla.gnome.org/attachment.cgi?id=302051&action=edit
gstobject: Add support for a format-specifier suffix
Similar to how the default name for an element is automatically assigned to be
unique, it would be useful to be able to pass a custom name that can be
automatically made unique.
For instance, if I have a program with a complex pipeline with queues in
several different contexts (after decoders, after tees, etc), I want to be able
to specify a context-specific name such as "video-decoder-queue-%u",
"tee-queue-%u", etc which will become "video-decoder-queue-0",
"video-decoder-queue-1", and so on. This makes parsing debug logs much easier
when you see "video-decoder-queue-12" instead of "queue34".
The attached patch implements this.
gst_element_factory_make (queue, "somequeue-%u");
will create "some-queue-0", "some-queue-1", etc using the same infrastructure
as the code that does the default name generation.
--
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