[Goodies-commits] r6349 - xfburn/trunk/xfburn
David Mohr
squisher at xfce.org
Sun Dec 21 03:25:06 CET 2008
Author: squisher
Date: 2008-12-21 02:25:06 +0000 (Sun, 21 Dec 2008)
New Revision: 6349
Modified:
xfburn/trunk/xfburn/xfburn-transcoder-gst.c
Log:
Further refining debug messages
Modified: xfburn/trunk/xfburn/xfburn-transcoder-gst.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-transcoder-gst.c 2008-12-21 01:38:09 UTC (rev 6348)
+++ xfburn/trunk/xfburn/xfburn-transcoder-gst.c 2008-12-21 02:25:06 UTC (rev 6349)
@@ -56,7 +56,7 @@
* Set DEBUG_GST >= 1 to be able to inspect the data just before it gets to the fd,
* and to get a lot more gst debugging output.
* Set DEBUG_GST >= 2 to also get notification of all bus messages.
- * Set DEBUG_GST >= 3 to also get a lot of gst state change messages.
+ * Set DEBUG_GST >= 3 to also get a lot of gst state change messages, as well as seing how fast data passes through gst
*/
#define DEBUG_GST 2
@@ -478,10 +478,12 @@
GError *error = NULL;
XfburnAudioTrackGst *gtrack = XFBURN_AUDIO_TRACK_GET_GST (priv->curr_track);
-#if DEBUG_GST > 0 && DEBUG > 0
+#if DEBUG_GST > 0
+ #if DEBUG > 0
DBG ("End of stream, wrote %.0f bytes", (gfloat) total_size);
+ #endif
#else
- DBG ("End of stream");
+ g_message ("End of stream.");
#endif
close (gtrack->fd_in);
@@ -738,12 +740,16 @@
cb_handoff (GstElement *element, GstBuffer *buffer, gpointer data)
{
guint size = GST_BUFFER_SIZE (buffer);
+#if DEBUG_GST > 2
static int i = 0;
- const int step = 20;
+ const int step = 30;
+#endif
total_size += size;
+#if DEBUG_GST > 2
if (++i % step == 0)
- DBG ("gstreamer just processed ~ %6d bytes (%8.0f bytes total).", size*step, (float)total_size);
+ DBG ("gstreamer just processed ~%6d bytes (%8.0f bytes total).", size*step, (float)total_size);
+#endif
}
#endif
More information about the Goodies-commits
mailing list