tests: make audio-trickplay test compile when the gst debugging system is disabled
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 24 Jun 2010 14:31:31 +0000 (15:31 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 24 Jun 2010 14:31:31 +0000 (15:31 +0100)
Fixes unused variable warning in that case.

tests/icles/audio-trickplay.c

index f79820a..7da0be4 100644 (file)
@@ -34,9 +34,8 @@ check_position (GstElement * elem, GstQuery * pos, const gchar * info)
 static gboolean
 print_buffer_ts (GstPad * pad, GstBuffer * buffer, gpointer user_data)
 {
-  GstClockTime ts = GST_BUFFER_TIMESTAMP (buffer);
-
-  GST_DEBUG ("  ts: %" GST_TIME_FORMAT, GST_TIME_ARGS (ts));
+  GST_DEBUG_OBJECT (pad, "  ts: %" GST_TIME_FORMAT,
+      GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer)));
   return TRUE;
 }