From c06944a4efadb28030fd5c0d7d12e7e059e5be6a Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 14 Aug 2006 09:50:26 +0000 Subject: [PATCH] ext/dvdread/dvdreadsrc.c: Put debug category initialization before use of GST_DEBUG, in order to remove a fatal warni... Original commit message from CVS: Patch by: Edward Hervey (edward at fluendo dot com) * ext/dvdread/dvdreadsrc.c: (plugin_init): Put debug category initialization before use of GST_DEBUG, in order to remove a fatal warning. Fixes #350895 --- ChangeLog | 8 ++++++++ ext/dvdread/dvdreadsrc.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 30cc476928..dcaad2519c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-08-14 Thomas Vander Stichele + + Patch by: Edward Hervey (edward at fluendo dot com) + + * ext/dvdread/dvdreadsrc.c: (plugin_init): + Put debug category initialization before use of GST_DEBUG, in order + to remove a fatal warning. Fixes #350895 + 2006-08-08 Tim-Philipp Müller * gst/dvdsub/gstdvdsubdec.c: (plugin_init): diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index cbcbfa6f9a..c915980df9 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -1572,15 +1572,15 @@ gst_dvd_read_src_do_init (GType dvdreadsrc_type) static gboolean plugin_init (GstPlugin * plugin) { + GST_DEBUG_CATEGORY_INIT (gstgst_dvd_read_src_debug, "dvdreadsrc", 0, + "DVD reader element based on dvdreadsrc"); + #ifdef ENABLE_NLS GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE, LOCALEDIR); bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); #endif /* ENABLE_NLS */ - GST_DEBUG_CATEGORY_INIT (gstgst_dvd_read_src_debug, "dvdreadsrc", 0, - "DVD reader element based on dvdreadsrc"); - if (!gst_element_register (plugin, "dvdreadsrc", GST_RANK_SECONDARY, GST_TYPE_DVD_READ_SRC)) { return FALSE;