[snappy] snappy: make GST_DEBUG available in snappy.c



commit 6a39fc649edfa327534b18d7cef14eba84615222
Author: Luis de Bethencourt <luis debethencourt com>
Date:   Thu May 24 13:37:09 2012 +0100

    snappy: make GST_DEBUG available in snappy.c

 src/snappy.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/snappy.c b/src/snappy.c
index bb485df..51811ea 100644
--- a/src/snappy.c
+++ b/src/snappy.c
@@ -135,7 +135,7 @@ process_args (int argc, char *argv[],
   if (argc > 1) {
     /* Save uris in the file glist */
     for (index = 1; index < argc; index++) {
-      g_print ("Adding file: %s", argv[index]);
+      g_print ("Adding file: %s\n", argv[index]);
       uri_list = g_list_append (uri_list, clean_uri (argv[index]));
       pos++;
     }
@@ -163,6 +163,7 @@ main (int argc, char *argv[])
   guint c, index, pos = 0;
   gchar *uri;
   gchar *suburi = NULL;
+  gchar *version_str;
   GList *uri_list;
   GOptionContext *context;
 
@@ -193,6 +194,11 @@ main (int argc, char *argv[])
 
   clutter_gst_init (&argc, &argv);
 
+  version_str = gst_version_string ();
+  GST_DEBUG_CATEGORY_INIT (_snappy_gst_debug, "snappy", 0,
+      "snappy media player");
+  GST_DEBUG ("Initialised %s", version_str);
+
   /* Gstreamer engine */
   engine = g_new (GstEngine, 1);
   sink = gst_element_factory_make ("autocluttersink", "cluttersink");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]