diff options
author | Benjamin Otte <otte@gnome.org> | 2003-06-29 19:46:13 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-06-29 19:46:13 +0000 |
commit | f4a7caa418d3a283392b1142fe9863ae870ce3b8 (patch) | |
tree | 8d29cf94dd85acfa8cc58f5761d28a24eae14223 /ext/audiofile | |
parent | 813b3a530e66bebe1153c8b10abc4cafc99ac772 (diff) | |
download | gstreamer-plugins-bad-f4a7caa418d3a283392b1142fe9863ae870ce3b8.tar.gz |
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/audiofile')
-rw-r--r-- | ext/audiofile/gstafparse.c | 7 | ||||
-rw-r--r-- | ext/audiofile/gstafsink.c | 9 | ||||
-rw-r--r-- | ext/audiofile/gstafsrc.c | 7 |
3 files changed, 16 insertions, 7 deletions
diff --git a/ext/audiofile/gstafparse.c b/ext/audiofile/gstafparse.c index d8840ea5f..2ceb4ee70 100644 --- a/ext/audiofile/gstafparse.c +++ b/ext/audiofile/gstafparse.c @@ -21,6 +21,9 @@ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <gst/gst.h> #include <gst/audio/audio.h> #include <string.h> @@ -375,11 +378,11 @@ gst_afparse_open_file (GstAFParse *afparse) break; case AF_SAMPFMT_FLOAT: case AF_SAMPFMT_DOUBLE: - GST_DEBUG (GST_CAT_PLUGIN_INFO, "ERROR: float data not supported yet !\n"); + GST_DEBUG ("ERROR: float data not supported yet !\n"); } afparse->rate = (guint) afGetRate (afparse->file, AF_DEFAULT_TRACK); afparse->width = sampleWidth; - GST_DEBUG (GST_CAT_PLUGIN_INFO, + GST_DEBUG ( "input file: %d channels, %d width, %d rate, signed %s\n", afparse->channels, afparse->width, afparse->rate, afparse->is_signed ? "yes" : "no"); diff --git a/ext/audiofile/gstafsink.c b/ext/audiofile/gstafsink.c index 43ebabfc6..e9783ac20 100644 --- a/ext/audiofile/gstafsink.c +++ b/ext/audiofile/gstafsink.c @@ -21,6 +21,9 @@ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <gst/gst.h> #include "gstafsink.h" @@ -316,10 +319,10 @@ gst_afsink_open_file (GstAFSink *sink) gst_caps_get_boolean (caps, "signed", &sink->is_signed); gst_caps_get_int (caps, "endianness", &sink->endianness_data); } - GST_DEBUG (GST_CAT_PLUGIN_INFO, "channels %d, width %d, rate %d, signed %s", + GST_DEBUG ("channels %d, width %d, rate %d, signed %s", sink->channels, sink->width, sink->rate, sink->is_signed ? "yes" : "no"); - GST_DEBUG (GST_CAT_PLUGIN_INFO, "endianness: data %d, output %d", + GST_DEBUG ("endianness: data %d, output %d", sink->endianness_data, sink->endianness_output); /* setup the output file */ if (sink->is_signed) @@ -485,7 +488,7 @@ gst_afsink_handle_event (GstPad *pad, GstEvent *event) GstAFSink *afsink; afsink = GST_AFSINK (gst_pad_get_parent (pad)); - GST_DEBUG (0, "DEBUG: afsink: got event"); + GST_DEBUG ("DEBUG: afsink: got event"); gst_afsink_close_file (afsink); return TRUE; diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c index ddc059cec..cf2ebb568 100644 --- a/ext/audiofile/gstafsrc.c +++ b/ext/audiofile/gstafsrc.c @@ -21,6 +21,9 @@ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <gst/gst.h> #include <gst/audio/audio.h> #include "gstafsrc.h" @@ -326,12 +329,12 @@ gst_afsrc_open_file (GstAFSrc *src) break; case AF_SAMPFMT_FLOAT: case AF_SAMPFMT_DOUBLE: - GST_DEBUG (GST_CAT_PLUGIN_INFO, + GST_DEBUG ( "ERROR: float data not supported yet !\n"); } src->rate = (guint) afGetRate (src->file, AF_DEFAULT_TRACK); src->width = sampleWidth; - GST_DEBUG (GST_CAT_PLUGIN_INFO, + GST_DEBUG ( "input file: %d channels, %d width, %d rate, signed %s\n", src->channels, src->width, src->rate, src->is_signed ? "yes" : "no"); |