Fix bug where debug category was declared inside a function

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676670
This commit is contained in:
Sebastian Rasmussen 2012-05-23 16:09:37 +02:00 committed by Wim Taymans
parent 38a2fe673e
commit 6c2aea9551

View file

@ -58,6 +58,9 @@
GST_DEBUG_CATEGORY (audio_resample_debug);
#define GST_CAT_DEFAULT audio_resample_debug
#if !defined(AUDIORESAMPLE_FORMAT_AUTO) || defined(DISABLE_ORC)
GST_DEBUG_CATEGORY_STATIC (GST_CAT_PERFORMANCE);
#endif
enum
{
@ -1429,7 +1432,6 @@ plugin_init (GstPlugin * plugin)
#else
GST_WARNING ("Orc disabled, can't benchmark int vs. float resampler");
{
GST_DEBUG_CATEGORY_STATIC (GST_CAT_PERFORMANCE);
GST_DEBUG_CATEGORY_GET (GST_CAT_PERFORMANCE, "GST_PERFORMANCE");
GST_CAT_WARNING (GST_CAT_PERFORMANCE, "orc disabled, no benchmarking done");
}