mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
to set default categories for an app, call set_categories before the gst_init restores gst-register to its previous v...
Original commit message from CVS: to set default categories for an app, call set_categories before the gst_init restores gst-register to its previous verbosity (but --gst-mask=0 works)
This commit is contained in:
parent
e25cb1b156
commit
bae6d1e31b
3 changed files with 3 additions and 16 deletions
|
@ -118,9 +118,8 @@ AC_SUBST(XML_LIBS)
|
|||
AC_SUBST(XML_CFLAGS)
|
||||
|
||||
GST_CHECK_LIBHEADER(POPT, popt, poptAddItem,, popt.h, POPT_LIBS="-lpopt",
|
||||
AC_MSG_ERROR(
|
||||
[popt 1.6.3 or newer is required to build gstreamer. You can download the latest
|
||||
version from ftp://people.redhat.com/sopwith/popt/]))
|
||||
AC_MSG_ERROR([popt 1.6.3 or newer is required to build gstreamer. You can
|
||||
download the latest version from ftp://people.redhat.com/sopwith/popt/]))
|
||||
|
||||
dnl Check for atomic.h
|
||||
dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
|
||||
|
|
|
@ -232,8 +232,6 @@ gst_default_debug_handler (gint category, gboolean incore,
|
|||
void
|
||||
gst_debug_set_categories (guint32 categories) {
|
||||
_gst_debug_categories = categories;
|
||||
if (categories)
|
||||
GST_INFO (0, "setting DEBUG categories to 0x%08X",categories);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -258,8 +256,6 @@ gst_debug_get_categories () {
|
|||
void
|
||||
gst_debug_enable_category (gint category) {
|
||||
_gst_debug_categories |= (1 << category);
|
||||
if (_gst_debug_categories)
|
||||
GST_INFO (0, "setting DEBUG categories to 0x%08X",_gst_debug_categories);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -271,8 +267,6 @@ gst_debug_enable_category (gint category) {
|
|||
void
|
||||
gst_debug_disable_category (gint category) {
|
||||
_gst_debug_categories &= ~ (1 << category);
|
||||
if (_gst_debug_categories)
|
||||
GST_INFO (0, "setting DEBUG categories to 0x%08X",_gst_debug_categories);
|
||||
}
|
||||
|
||||
|
||||
|
@ -360,8 +354,6 @@ gst_default_info_handler (gint category, gboolean incore,
|
|||
void
|
||||
gst_info_set_categories (guint32 categories) {
|
||||
_gst_info_categories = categories;
|
||||
if (categories)
|
||||
GST_INFO (0, "setting INFO categories to 0x%08X",categories);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -387,8 +379,6 @@ gst_info_get_categories () {
|
|||
void
|
||||
gst_info_enable_category (gint category) {
|
||||
_gst_info_categories |= (1 << category);
|
||||
if (_gst_info_categories)
|
||||
GST_INFO (0, "setting INFO categories to 0x%08X",_gst_info_categories);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -400,8 +390,6 @@ gst_info_enable_category (gint category) {
|
|||
void
|
||||
gst_info_disable_category (gint category) {
|
||||
_gst_info_categories &= ~ (1 << category);
|
||||
if (_gst_info_categories)
|
||||
GST_INFO (0, "setting INFO categories to 0x%08X",_gst_info_categories);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ int main(int argc,char *argv[])
|
|||
/* Init gst */
|
||||
_gst_plugin_spew = TRUE;
|
||||
_gst_warn_old_registry = FALSE;
|
||||
//gst_info_enable_category(GST_CAT_PLUGIN_LOADING);
|
||||
gst_info_enable_category(GST_CAT_PLUGIN_LOADING);
|
||||
gst_init(&argc,&argv);
|
||||
|
||||
/* Check args */
|
||||
|
|
Loading…
Reference in a new issue