summaryrefslogtreecommitdiffstats
path: root/gst/cutter
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2003-06-29 19:46:12 +0000
committerBenjamin Otte <otte@gnome.org>2003-06-29 19:46:12 +0000
commit90da904f1e435812ce245928b80cfd325785ff37 (patch)
tree308c8167f16721bbfe4a047e6d798ade33aa968e /gst/cutter
parent7519af569b22f502f88b9c80e7ce26522e1e9aad (diff)
compatibility fix for new GST_DEBUG stuff.
Original commit message from CVS: compatibility fix for new GST_DEBUG stuff. Includes fixes for missing includes for config.h and unistd.h I only ensured for plugins I can build that they work, so if some of them are still broken, you gotta fix them yourselves unfortunately.
Diffstat (limited to 'gst/cutter')
-rw-r--r--gst/cutter/gstcutter.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c
index f256bda7..e902894c 100644
--- a/gst/cutter/gstcutter.c
+++ b/gst/cutter/gstcutter.c
@@ -17,6 +17,9 @@
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include <gst/audio/audio.h>
#include "gstcutter.h"
@@ -222,7 +225,7 @@ gst_cutter_chain (GstPad *pad, GstBuffer *buf)
if (!filter->have_caps) gst_cutter_get_caps (pad, filter);
in_data = (gint16 *) GST_BUFFER_DATA (buf);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"length of prerec buffer: %.3f sec",
filter->pre_run_length);
@@ -248,7 +251,7 @@ gst_cutter_chain (GstPad *pad, GstBuffer *buf)
/* if RMS below threshold, add buffer length to silent run length count
* if not, reset
*/
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"buffer stats: ms %f, RMS %f, audio length %f",
ms, RMS, gst_audio_length (filter->srcpad, buf));
if (RMS < filter->threshold_level)
@@ -279,7 +282,7 @@ gst_cutter_chain (GstPad *pad, GstBuffer *buf)
/* g_print ("DEBUG: cutter: start from here, turning on out\n"); */
/* first of all, flush current buffer */
g_signal_emit (G_OBJECT (filter), gst_cutter_signals[CUT_START], 0);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"flushing buffer of length %.3f",
filter->pre_run_length);
while (filter->pre_buffer)
@@ -289,7 +292,7 @@ gst_cutter_chain (GstPad *pad, GstBuffer *buf)
gst_pad_push (filter->srcpad, prebuf);
++count;
}
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "flushed %d buffers", count);
+ GST_DEBUG ("flushed %d buffers", count);
filter->pre_run_length = 0.0;
}
}
@@ -345,7 +348,7 @@ gst_cutter_set_property (GObject *object, guint prop_id,
case ARG_THRESHOLD:
/* set the level */
filter->threshold_level = g_value_get_double (value);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"DEBUG: set threshold level to %f",
filter->threshold_level);
break;
@@ -355,7 +358,7 @@ gst_cutter_set_property (GObject *object, guint prop_id,
* values in dB < 0 result in values between 0 and 1
*/
filter->threshold_level = pow (10, g_value_get_double (value) / 20);
- GST_DEBUG (GST_CAT_PLUGIN_INFO,
+ GST_DEBUG (
"DEBUG: set threshold level to %f",
filter->threshold_level);
break;