X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fgst-compprep.c;h=f277b528aafca50a018d88c800d264155523bd61;hb=803ce6bf4884d8e5a0a16899ec0ad7d6757749e3;hp=75d5de921761e6a78d7ed2833291e77cc041a083;hpb=30438fd472b634da9a649b78efe6063dcb695c21;p=platform%2Fupstream%2Fgstreamer.git diff --git a/tools/gst-compprep.c b/tools/gst-compprep.c index 75d5de9..f277b52 100644 --- a/tools/gst-compprep.c +++ b/tools/gst-compprep.c @@ -1,5 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include -#include "config.h" + +GST_DEBUG_CATEGORY_STATIC(debug_compprep); +#define GST_CAT_DEFAULT debug_compprep int main(int argc,char *argv[]) { xmlDocPtr doc; @@ -12,9 +18,8 @@ int main(int argc,char *argv[]) { GParamSpec **property_specs; guint num_properties,i; - gst_debug_set_categories(0); - gst_info_set_categories(0); gst_init(&argc,&argv); + GST_DEBUG_CATEGORY_INIT (debug_compprep, "compprep", GST_DEBUG_BOLD, "gst-compprep application"); doc = xmlNewDoc("1.0"); doc->xmlRootNode = xmlNewDocNode(doc, NULL, "GST-CompletionRegistry", NULL); @@ -44,11 +49,10 @@ int main(int argc,char *argv[]) { GST_PLUGIN_FEATURE_NAME(factory)); element = gst_element_factory_create(factory,NULL); - GST_DEBUG(GST_CAT_PLUGIN_LOADING, "adding factory %s", - GST_PLUGIN_FEATURE_NAME(factory)); + GST_DEBUG ("adding factory %s", GST_PLUGIN_FEATURE_NAME(factory)); if (element == NULL) { - fprintf(stderr,"couldn't construct element from factory %s\n", - gst_object_get_name (GST_OBJECT (factory))); + GST_ERROR ("couldn't construct element from factory %s\n", + gst_object_get_name (GST_OBJECT (factory))); return 1; }