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/gstafsink.c | |
parent | 813b3a530e66bebe1153c8b10abc4cafc99ac772 (diff) | |
download | gst-plugins-bad-f4a7caa418d3a283392b1142fe9863ae870ce3b8.tar.gz gst-plugins-bad-f4a7caa418d3a283392b1142fe9863ae870ce3b8.tar.bz2 gst-plugins-bad-f4a7caa418d3a283392b1142fe9863ae870ce3b8.zip |
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/gstafsink.c')
-rw-r--r-- | ext/audiofile/gstafsink.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/audiofile/gstafsink.c b/ext/audiofile/gstafsink.c index 43ebabfc..e9783ac2 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; |