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/libfame | |
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/libfame')
-rw-r--r-- | ext/libfame/gstfamedec.c | 11 | ||||
-rw-r--r-- | ext/libfame/gstlibfame.c | 11 |
2 files changed, 14 insertions, 8 deletions
diff --git a/ext/libfame/gstfamedec.c b/ext/libfame/gstfamedec.c index abab52bc..03805f84 100644 --- a/ext/libfame/gstfamedec.c +++ b/ext/libfame/gstfamedec.c @@ -17,6 +17,9 @@ * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <fame.h> #include <string.h> @@ -309,7 +312,7 @@ gst_famedec_sinkconnect (GstPad *pad, GstCaps *caps) return GST_PAD_LINK_DELAYED; if (famedec->initialized) { - GST_DEBUG(0, "error: famedec decoder already initialized !"); + GST_DEBUG ("error: famedec decoder already initialized !"); return GST_PAD_LINK_REFUSED; } @@ -412,7 +415,7 @@ gst_famedec_chain (GstPad *pad, GstBuffer *buf) data = (guchar *) GST_BUFFER_DATA (buf); size = GST_BUFFER_SIZE (buf); - GST_DEBUG (0,"gst_famedec_chain: got buffer of %ld bytes in '%s'", + GST_DEBUG ("gst_famedec_chain: got buffer of %ld bytes in '%s'", size, GST_OBJECT_NAME (famedec)); /* the data contains the three planes side by side, with size w * h, w * h /4, @@ -442,7 +445,7 @@ gst_famedec_chain (GstPad *pad, GstBuffer *buf) GST_BUFFER_DATA (outbuf) = g_malloc (length); memcpy (GST_BUFFER_DATA(outbuf), famedec->buffer, length); - GST_DEBUG (0,"gst_famedec_chain: pushing buffer of size %d", + GST_DEBUG ("gst_famedec_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf)); gst_pad_push (famedec->srcpad, outbuf); @@ -463,7 +466,7 @@ gst_famedec_set_property (GObject *object, guint prop_id, famedec = GST_FAMEENC (object); if (famedec->initialized) { - GST_DEBUG(0, "error: famedec decoder already initialized, cannot set properties !"); + GST_DEBUG ("error: famedec decoder already initialized, cannot set properties !"); return; } diff --git a/ext/libfame/gstlibfame.c b/ext/libfame/gstlibfame.c index fdeaaa7f..45ffee4e 100644 --- a/ext/libfame/gstlibfame.c +++ b/ext/libfame/gstlibfame.c @@ -17,6 +17,9 @@ * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <fame.h> #include <string.h> @@ -308,7 +311,7 @@ gst_fameenc_sinkconnect (GstPad *pad, GstCaps *caps) return GST_PAD_LINK_DELAYED; if (fameenc->initialized) { - GST_DEBUG(0, "error: fameenc encoder already initialized !"); + GST_DEBUG ("error: fameenc encoder already initialized !"); return GST_PAD_LINK_REFUSED; } @@ -415,7 +418,7 @@ gst_fameenc_chain (GstPad *pad, GstBuffer *buf) data = (guchar *) GST_BUFFER_DATA (buf); size = GST_BUFFER_SIZE (buf); - GST_DEBUG (0,"gst_fameenc_chain: got buffer of %ld bytes in '%s'", + GST_DEBUG ("gst_fameenc_chain: got buffer of %ld bytes in '%s'", size, GST_OBJECT_NAME (fameenc)); /* the data contains the three planes side by side, with size w * h, w * h /4, @@ -453,7 +456,7 @@ gst_fameenc_chain (GstPad *pad, GstBuffer *buf) memcpy (GST_BUFFER_DATA(outbuf), fameenc->buffer, length); GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buf); - GST_DEBUG (0,"gst_fameenc_chain: pushing buffer of size %d", + GST_DEBUG ("gst_fameenc_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf)); gst_pad_push (fameenc->srcpad, outbuf); @@ -474,7 +477,7 @@ gst_fameenc_set_property (GObject *object, guint prop_id, fameenc = GST_FAMEENC (object); if (fameenc->initialized) { - GST_DEBUG(0, "error: fameenc encoder already initialized, cannot set properties !"); + GST_DEBUG ("error: fameenc encoder already initialized, cannot set properties !"); return; } |