summaryrefslogtreecommitdiffstats
path: root/gst/videoflip
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/videoflip
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/videoflip')
-rw-r--r--gst/videoflip/gstvideoflip.c25
-rw-r--r--gst/videoflip/videoflip.c8
2 files changed, 18 insertions, 15 deletions
diff --git a/gst/videoflip/gstvideoflip.c b/gst/videoflip/gstvideoflip.c
index 6f51d705..6dd26247 100644
--- a/gst/videoflip/gstvideoflip.c
+++ b/gst/videoflip/gstvideoflip.c
@@ -19,6 +19,9 @@
/*#define DEBUG_ENABLED */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <gstvideoflip.h>
#include <videoflip.h>
@@ -188,7 +191,7 @@ gst_videoflip_sink_getcaps (GstPad *pad, GstCaps *caps)
GstCaps *sizecaps;
int i;
- GST_DEBUG(0,"gst_videoflip_src_link");
+ GST_DEBUG ("gst_videoflip_src_link");
videoflip = GST_VIDEOFLIP (gst_pad_get_parent (pad));
/* get list of peer's caps */
@@ -229,7 +232,7 @@ gst_videoflip_src_link (GstPad *pad, GstCaps *caps)
GstPadLinkReturn ret;
GstCaps *peercaps;
- GST_DEBUG(0,"gst_videoflip_src_link");
+ GST_DEBUG ("gst_videoflip_src_link");
videoflip = GST_VIDEOFLIP (gst_pad_get_parent (pad));
if (!GST_CAPS_IS_FIXED (caps)) {
@@ -244,7 +247,7 @@ gst_videoflip_src_link (GstPad *pad, GstCaps *caps)
gst_caps_get_int (caps, "width", &videoflip->to_width);
gst_caps_get_int (caps, "height", &videoflip->to_height);
- GST_DEBUG(0,"width %d height %d",videoflip->to_width,videoflip->to_height);
+ GST_DEBUG ("width %d height %d",videoflip->to_width,videoflip->to_height);
peercaps = gst_caps_copy(caps);
@@ -273,7 +276,7 @@ gst_videoflip_sink_link (GstPad *pad, GstCaps *caps)
GstPadLinkReturn ret;
GstCaps *peercaps;
- GST_DEBUG(0,"gst_videoflip_src_link");
+ GST_DEBUG ("gst_videoflip_src_link");
videoflip = GST_VIDEOFLIP (gst_pad_get_parent (pad));
if (!GST_CAPS_IS_FIXED (caps)) {
@@ -312,7 +315,7 @@ gst_videoflip_sink_link (GstPad *pad, GstCaps *caps)
static void
gst_videoflip_init (GstVideoflip *videoflip)
{
- GST_DEBUG(0,"gst_videoflip_init");
+ GST_DEBUG ("gst_videoflip_init");
videoflip->sinkpad = gst_pad_new_from_template (
GST_PAD_TEMPLATE_GET (gst_videoflip_sink_template_factory),
"sink");
@@ -341,7 +344,7 @@ gst_videoflip_chain (GstPad *pad, GstBuffer *buf)
gulong size;
GstBuffer *outbuf;
- GST_DEBUG (0,"gst_videoflip_chain");
+ GST_DEBUG ("gst_videoflip_chain");
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
@@ -358,10 +361,10 @@ gst_videoflip_chain (GstPad *pad, GstBuffer *buf)
return;
}
- GST_DEBUG (0,"gst_videoflip_chain: got buffer of %ld bytes in '%s'",size,
+ GST_DEBUG ("gst_videoflip_chain: got buffer of %ld bytes in '%s'",size,
GST_OBJECT_NAME (videoflip));
- GST_DEBUG(0,"size=%ld from=%dx%d to=%dx%d fromsize=%ld (should be %d) tosize=%d",
+ GST_DEBUG ("size=%ld from=%dx%d to=%dx%d fromsize=%ld (should be %d) tosize=%d",
size,
videoflip->from_width, videoflip->from_height,
videoflip->to_width, videoflip->to_height,
@@ -377,12 +380,12 @@ gst_videoflip_chain (GstPad *pad, GstBuffer *buf)
GST_BUFFER_TIMESTAMP(outbuf) = GST_BUFFER_TIMESTAMP(buf);
g_return_if_fail(videoflip->format);
- GST_DEBUG (0,"format %s",videoflip->format->fourcc);
+ GST_DEBUG ("format %s",videoflip->format->fourcc);
g_return_if_fail(videoflip->format->scale);
videoflip->format->scale(videoflip, GST_BUFFER_DATA(outbuf), data);
- GST_DEBUG (0,"gst_videoflip_chain: pushing buffer of %d bytes in '%s'",GST_BUFFER_SIZE(outbuf),
+ GST_DEBUG ("gst_videoflip_chain: pushing buffer of %d bytes in '%s'",GST_BUFFER_SIZE(outbuf),
GST_OBJECT_NAME (videoflip));
gst_pad_push(videoflip->srcpad, outbuf);
@@ -399,7 +402,7 @@ gst_videoflip_set_property (GObject *object, guint prop_id, const GValue *value,
g_return_if_fail(GST_IS_VIDEOFLIP(object));
src = GST_VIDEOFLIP(object);
- GST_DEBUG(0,"gst_videoflip_set_property");
+ GST_DEBUG ("gst_videoflip_set_property");
switch (prop_id) {
case ARG_METHOD:
src->method = g_value_get_enum (value);
diff --git a/gst/videoflip/videoflip.c b/gst/videoflip/videoflip.c
index ea93a7c6..14764019 100644
--- a/gst/videoflip/videoflip.c
+++ b/gst/videoflip/videoflip.c
@@ -74,7 +74,7 @@ videoflip_find_by_caps(GstCaps *caps)
{
int i;
- GST_DEBUG (0,"finding %p",caps);
+ GST_DEBUG ("finding %p",caps);
g_return_val_if_fail(caps != NULL, NULL);
@@ -121,13 +121,13 @@ gst_videoflip_setup (GstVideoflip *videoflip)
break;
}
- GST_DEBUG (0,"format=%p \"%s\" from %dx%d to %dx%d",
+ GST_DEBUG ("format=%p \"%s\" from %dx%d to %dx%d",
videoflip->format, videoflip->format->fourcc,
videoflip->from_width, videoflip->from_height,
videoflip->to_width, videoflip->to_height);
if(videoflip->method == GST_VIDEOFLIP_METHOD_IDENTITY){
- GST_DEBUG (0,"videoflip: using passthru");
+ GST_DEBUG ("videoflip: using passthru");
videoflip->passthru = TRUE;
videoflip->inited = TRUE;
return;
@@ -149,7 +149,7 @@ gst_videoflip_planar411 (GstVideoflip *scale, unsigned char *dest, unsigned char
int dw = scale->to_width;
int dh = scale->to_height;
- GST_DEBUG (0,"videoflip: scaling planar 4:1:1 %dx%d to %dx%d", sw, sh, dw, dh);
+ GST_DEBUG ("videoflip: scaling planar 4:1:1 %dx%d to %dx%d", sw, sh, dw, dh);
gst_videoflip_flip(scale, dest, src, sw, sh, dw, dh);