[Bug 748233] GstObject: add support for setting uniquely numbered names for simplicity, e.g. videoqueue-%u

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 27 05:56:31 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=748233

--- Comment #6 from Nirbheek Chauhan <nirbheek.chauhan at gmail.com> ---
Created attachment 304067
  --> https://bugzilla.gnome.org/attachment.cgi?id=304067&action=edit
gstobject: Add support for a format-specifier suffix

(In reply to Tim-Philipp Müller from comment #5)
> A simple unit test that exercises this new code path would be nice IMO.
> 

Added.

> This
> 
> suffix_index = (int) (g_strrstr (name, "%u") - name) - 1;
> 
> could probably be simplified based on strlen() and the previous has_suffix()
> check?

Err, yes, you're right. The index is simply strlen(name) - strlen("-%u").
Fixed. :)

-- 
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