summaryrefslogtreecommitdiffstats
path: root/ext/esd/esdmon.c
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 /ext/esd/esdmon.c
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 'ext/esd/esdmon.c')
-rw-r--r--ext/esd/esdmon.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c
index 5d8cd9fc..569942db 100644
--- a/ext/esd/esdmon.c
+++ b/ext/esd/esdmon.c
@@ -20,8 +20,12 @@
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gst/gst.h>
#include <esd.h>
+#include <unistd.h>
#define GST_TYPE_ESDMON \
(gst_esdmon_get_type())
@@ -278,7 +282,7 @@ gst_esdmon_get (GstPad *pad)
g_return_val_if_fail (pad != NULL, NULL);
esdmon = GST_ESDMON(gst_pad_get_parent (pad));
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "attempting to read something from esdmon");
+ GST_DEBUG ("attempting to read something from esdmon");
buf = gst_buffer_new ();
g_return_val_if_fail (buf, NULL);
@@ -324,7 +328,7 @@ gst_esdmon_get (GstPad *pad)
if (esdmon->depth == 16) readsamples /= 2;
esdmon->samples_since_basetime += readsamples;
- GST_DEBUG (GST_CAT_PLUGIN_INFO, "pushed buffer from esdmon of %ld bytes, timestamp %" G_GINT64_FORMAT, readbytes, GST_BUFFER_TIMESTAMP (buf));
+ GST_DEBUG ("pushed buffer from esdmon of %ld bytes, timestamp %" G_GINT64_FORMAT, readbytes, GST_BUFFER_TIMESTAMP (buf));
return buf;
}
@@ -442,21 +446,21 @@ gst_esdmon_open_audio (GstEsdmon *src)
if (src->depth == 16) esdformat |= ESD_BITS16;
else if (src->depth == 8) esdformat |= ESD_BITS8;
else {
- GST_DEBUG (0, "esdmon: invalid bit depth (%d)", src->depth);
+ GST_DEBUG ("esdmon: invalid bit depth (%d)", src->depth);
return FALSE;
}
if (src->channels == 2) esdformat |= ESD_STEREO;
else if (src->channels == 1) esdformat |= ESD_MONO;
else {
- GST_DEBUG (0, "esdmon: invalid number of channels (%d)", src->channels);
+ GST_DEBUG ("esdmon: invalid number of channels (%d)", src->channels);
return FALSE;
}
- GST_DEBUG (0, "esdmon: attempting to open connection to esound server");
+ GST_DEBUG ("esdmon: attempting to open connection to esound server");
src->fd = esd_monitor_stream(esdformat, src->frequency, src->host, connname);
if ( src->fd < 0 ) {
- GST_DEBUG (0, "esdmon: can't open connection to esound server");
+ GST_DEBUG ("esdmon: can't open connection to esound server");
return FALSE;
}
@@ -475,7 +479,7 @@ gst_esdmon_close_audio (GstEsdmon *src)
GST_FLAG_UNSET (src, GST_ESDMON_OPEN);
- GST_DEBUG (0, "esdmon: closed sound device");
+ GST_DEBUG ("esdmon: closed sound device");
}
static GstElementStateReturn