[Goodies-commits] r6086 - xfburn/trunk/xfburn

David Mohr squisher at xfce.org
Thu Nov 13 01:41:30 CET 2008


Author: squisher
Date: 2008-11-13 00:41:30 +0000 (Thu, 13 Nov 2008)
New Revision: 6086

Modified:
   xfburn/trunk/xfburn/xfburn-transcoder-gst.c
Log:
Only compile in the identity element and handoff inspection when debugging

Modified: xfburn/trunk/xfburn/xfburn-transcoder-gst.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-transcoder-gst.c	2008-11-12 23:16:32 UTC (rev 6085)
+++ xfburn/trunk/xfburn/xfburn-transcoder-gst.c	2008-11-13 00:41:30 UTC (rev 6086)
@@ -145,7 +145,7 @@
 #define XFBURN_AUDIO_TRACK_GET_GST(atrack) ((XfburnAudioTrackGst *) (atrack)->data)
 
 /* globals */
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
 static guint64 total_size = 0;
 #endif
 
@@ -261,7 +261,7 @@
   XfburnTranscoderGstPrivate *priv= XFBURN_TRANSCODER_GST_GET_PRIVATE (trans);
 
   GstElement *pipeline, *source, *decoder, *conv, *sink;
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
   GstElement *id;
 #endif
   GstBus *bus;
@@ -274,7 +274,7 @@
   priv->source  = source   = gst_element_factory_make ("filesrc",       "file-source");
   priv->decoder = decoder  = gst_element_factory_make ("decodebin",     "decoder");
   priv->conv    = conv     = gst_element_factory_make ("audioconvert",  "converter");
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
                   id       = gst_element_factory_make ("identity",      "debugging-identity");
 #endif
   priv->sink    = sink     = gst_element_factory_make ("fdsink",        "audio-output");
@@ -288,7 +288,7 @@
     return;
   }
 
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
   if (!id) {
     g_warning ("The debug identity element could not be created");
     g_set_error (&(priv->error), XFBURN_ERROR, XFBURN_ERROR_GST_CREATION,
@@ -305,7 +305,7 @@
 
   gst_bin_add_many (GST_BIN (pipeline),
                     source, decoder, conv, sink, NULL);
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
   gst_bin_add (GST_BIN (pipeline), id);
 #endif
 
@@ -321,7 +321,7 @@
             "signed", G_TYPE_BOOLEAN, TRUE,
             NULL);
 
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
   if (!gst_element_link_filtered (conv, id, caps)) {
 #else
   if (!gst_element_link_filtered (conv, sink, caps)) {
@@ -333,7 +333,7 @@
     return;
   }
   gst_caps_unref (caps);
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
   gst_element_link (id, sink);
   g_signal_connect (id, "handoff", G_CALLBACK (cb_handoff), id);
 #endif
@@ -473,7 +473,7 @@
       GError *error = NULL;
       XfburnAudioTrackGst *gtrack = XFBURN_AUDIO_TRACK_GET_GST (priv->curr_track);
 
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
       DBG ("End of stream, wrote %.0f bytes", (gfloat) total_size);
 #else
       DBG ("End of stream");
@@ -691,7 +691,7 @@
   return "gstreamer";
 }
 
-#ifdef DEBUG_GST
+#if DEBUG_GST > 0 && DEBUG > 0
 
 /* this function can inspect the data just before it is passed on
    to the fd for processing by libburn */




More information about the Goodies-commits mailing list