After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720036 - info: return existing debug category when registering a category twice (regression)
info: return existing debug category when registering a category twice (regre...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-07 18:35 UTC by Víctor Manuel Jáquez Leal
Modified: 2013-12-07 19:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
info: return the found category (1.25 KB, patch)
2013-12-07 18:36 UTC, Víctor Manuel Jáquez Leal
committed Details | Review

Description Víctor Manuel Jáquez Leal 2013-12-07 18:35:59 UTC
If a category with the same name is found when creating a new one, the found category is returned.
Comment 1 Víctor Manuel Jáquez Leal 2013-12-07 18:36:35 UTC
Created attachment 263720 [details] [review]
info: return the found category
Comment 2 Tim-Philipp Müller 2013-12-07 19:08:17 UTC
commit 9a62f007fc21bf4eddcdffa8b2b1ab242d7ff6a0
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Sat Dec 7 19:04:16 2013 +0000

    tests: add unit test for registering the same category twice

commit 24a766a13b05a2d06bf9db24abf77eafe3f1f000
Author: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Date:   Sat Dec 7 19:32:58 2013 +0100

    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