soup: fix soup debug category

Use soup debug category in souploader
for soup plugin element load.

Inititalize properly soup utils category.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2547>
This commit is contained in:
Stéphane Cerveau 2022-06-01 16:14:24 +02:00 committed by Tim-Philipp Müller
parent eeb8eb0b9d
commit 4361898015
3 changed files with 4 additions and 5 deletions

View file

@ -22,10 +22,6 @@
#include "gstsoupelements.h"
#include "gstsouploader.h"
GST_DEBUG_CATEGORY (gst_soup_debug);
#define GST_CAT_DEFAULT gst_soup_debug
static gboolean
plugin_init (GstPlugin * plugin)
{

View file

@ -24,6 +24,7 @@
#include "gstsouputils.h"
GST_DEBUG_CATEGORY (soup_utils_debug);
#define GST_CAT_DEFAULT soup_utils_debug
gboolean
soup_element_init (GstPlugin * plugin)

View file

@ -30,7 +30,7 @@
#endif
#endif /* G_OS_WIN32 */
GST_DEBUG_CATEGORY_EXTERN (gst_soup_debug);
GST_DEBUG_CATEGORY (gst_soup_debug);
#define GST_CAT_DEFAULT gst_soup_debug
#ifndef STATIC_SOUP
@ -146,6 +146,8 @@ gst_soup_load_library (void)
g_assert (g_module_supported ());
GST_DEBUG_CATEGORY_INIT (gst_soup_debug, "soup", 0, "soup");
#ifdef HAVE_RTLD_NOLOAD
{
gpointer handle = NULL;