GNOME Bugzilla – Bug 645931
[gstmultiqueue] fix arbitrary sink + source pad naming
Last modified: 2011-03-29 09:33:44 UTC
gst_single_queue_new used actually requested name to assign the pad names instead of the 0-based queue id
Created attachment 184444 [details] [review] [gstmultiqueue] fix arbitrary sink + source pad naming
Review of attachment 184444 [details] [review]: ::: plugins/elements/gstmultiqueue.c @@ +1754,3 @@ + name = g_strdup_printf ("sink%d", sq->id); + + sq->sinkpad = gst_pad_new_from_static_template (&sinktemplate, name); You are leaking the name string here if no names was provided by the caller
Created attachment 184496 [details] [review] [gstmultiqueue] fix arbitrary sink + source pad naming fixed name leaking
commit 86bbc85ab1be0122da883066626eea1a49eed1e8 Author: Fraxinas <andreas.frisch@multimedia-labs.de> Date: Mon Mar 28 21:01:13 2011 +0200 multiqueue: Fix arbitrary sink + source pad naming Use the string provided by the caller for the sinkpad name if possible. Note that all sanity checking for this name is already done in GstElement. Fixes Bug #645931