summaryrefslogtreecommitdiffstats
path: root/gst/monoscope
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/monoscope
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/monoscope')
-rw-r--r--gst/monoscope/gstmonoscope.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c
index 384dfa04..f6ff75a1 100644
--- a/gst/monoscope/gstmonoscope.c
+++ b/gst/monoscope/gstmonoscope.c
@@ -17,6 +17,9 @@
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <config.h>
#include <gst/gst.h>
@@ -234,15 +237,15 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin)
monoscope = GST_MONOSCOPE (gst_pad_get_parent (pad));
- GST_DEBUG (0, "Monoscope: chainfunc called");
+ GST_DEBUG ("Monoscope: chainfunc called");
samples_in = GST_BUFFER_SIZE (bufin) / sizeof (gint16);
- GST_DEBUG (0, "input buffer has %d samples", samples_in);
+ GST_DEBUG ("input buffer has %d samples", samples_in);
/* FIXME: should really select the first 1024 samples after the timestamp. */
if (GST_BUFFER_TIMESTAMP (bufin) < monoscope->next_time || samples_in < 1024) {
- GST_DEBUG (0, "timestamp is %" G_GUINT64_FORMAT ": want >= %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP (bufin), monoscope->next_time);
+ GST_DEBUG ("timestamp is %" G_GUINT64_FORMAT ": want >= %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP (bufin), monoscope->next_time);
gst_buffer_unref (bufin);
return;
}
@@ -258,7 +261,7 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin)
monoscope->visstate = monoscope_init (monoscope->width, monoscope->height);
g_assert(monoscope->visstate != 0);
- GST_DEBUG (0, "making new pad");
+ GST_DEBUG ("making new pad");
caps = GST_CAPS_NEW (
"monoscopesrc",
@@ -293,7 +296,7 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin)
gst_buffer_unref (bufin);
- GST_DEBUG (0, "Monoscope: exiting chainfunc");
+ GST_DEBUG ("Monoscope: exiting chainfunc");
}