gstobject: Avoid double strdup when setting NULL names.
authorEdward Hervey <bilboed@bilboed.com>
Thu, 12 Nov 2009 08:07:03 +0000 (09:07 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 7 Dec 2009 08:49:06 +0000 (09:49 +0100)
commit41403505944068cf39f6d254401a75a64533b289
treea11cabd47d872f82c991cca4f89e31596fe05929
parentbfef4a70bf68d052b3430277ec62af21adf1816b
gstobject: Avoid double strdup when setting NULL names.

Instead of chaining up to gst_object_set_name (which does typechecking
and strdup's the name again), just use the already allocated new
name.
gst/gstobject.c