[gst-cvs] CVS: gstreamer/plugins/filters/colorspace colorspace.c,1.18,1.18.4.1
Wim Taymans
wtay at users.sourceforge.net
Thu Oct 11 12:07:18 PDT 2001
Update of /cvsroot/gstreamer/gstreamer/plugins/filters/colorspace
In directory usw-pr-cvs1:/tmp/cvs-serv6887
Modified Files:
Tag: BRANCH-EVENTS1
colorspace.c
Log Message:
More g_warnings instead of printf/g_print
Index: colorspace.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/plugins/filters/colorspace/colorspace.c,v
retrieving revision 1.18
retrieving revision 1.18.4.1
diff -u -d -r1.18 -r1.18.4.1
--- colorspace.c 2001/08/27 07:22:10 1.18
+++ colorspace.c 2001/10/11 19:05:22 1.18.4.1
@@ -109,7 +109,7 @@
from_space = gst_caps_get_fourcc_int (from_caps, "format");
to_space = gst_caps_get_fourcc_int (to_caps, "format");
- g_print ("set up converter for %08lx to %08lx\n", from_space, to_space);
+ g_warning ("set up converter for %08lx to %08lx\n", from_space, to_space);
switch (from_space) {
case GST_MAKE_FOURCC ('R','G','B',' '):
@@ -154,7 +154,7 @@
#endif
case GST_MAKE_FOURCC ('Y','U','Y','2'):
case GST_MAKE_FOURCC ('I','4','2','0'):
- fprintf (stderr, "colorspace: RGB to YUV implement me\n");
+ g_error ("colorspace: RGB to YUV implement me");
break;
}
break;
@@ -162,7 +162,7 @@
case GST_MAKE_FOURCC ('I','4','2','0'):
switch (to_space) {
case GST_MAKE_FOURCC ('R','G','B',' '):
- fprintf (stderr, "colorspace: YUV to RGB\n");
+ g_warning ("colorspace: YUV to RGB");
space->destbpp = gst_caps_get_int (to_caps, "bpp");
space->converter = gst_colorspace_yuv2rgb_get_converter (from_caps, to_caps);
@@ -238,7 +238,7 @@
case GST_MAKE_FOURCC ('Y','U','Y','2'):
case GST_MAKE_FOURCC ('I','4','2','0'):
//space->srccaps = original;
- fprintf (stderr, "found something suitable\n");
+ //fprintf (stderr, "found something suitable\n");
return GST_PAD_NEGOTIATE_AGREE;
default:
*caps = NULL;
@@ -273,8 +273,8 @@
default:
break;
}
- g_print ("colorspace: no common format found\n");
- g_print ("colorspace: src: %08lx\n", gst_caps_get_fourcc_int (original, "format"));
+ g_warning ("colorspace: no common format found\n");
+ g_warning ("colorspace: src: %08lx\n", gst_caps_get_fourcc_int (original, "format"));
// peers couldn't agree, we need to help
space->sinkcaps = original;
@@ -297,7 +297,7 @@
*/
if (gst_pad_renegotiate (space->srcpad)) {
- g_print ("found something suitable\n");
+ g_warning ("found something suitable\n");
if (colorspace_setup_converter (space)) {
return GST_PAD_NEGOTIATE_AGREE;
}
More information about the Gstreamer-commits
mailing list