info: return existing category if a debug category is registered twice
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 7 Dec 2013 18:32:58 +0000 (19:32 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 7 Dec 2013 19:03:23 +0000 (19:03 +0000)
commit24a766a13b05a2d06bf9db24abf77eafe3f1f000
treece91fe11cc7c5dbf916f423cf05fa9dde9f02113
parent53ae1b2c9c160a98a338adbb8a7ded0cad8eeebe
info: return existing category if a debug category is registered twice

If a category with the same name is found when creating a new
one, the found category is returned instead of an invalid pointer.
Fixes issue with gst-vaapi (which uses an internal copy of the
codec parsers) caused by commit ccba9130.

https://bugzilla.gnome.org/show_bug.cgi?id=720036
gst/gstinfo.c