From 77bb6156458102982d25d2e2b557bbfeda4bc280 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 14 Jul 2003 08:28:44 +0000 Subject: No "format" property in new RGB caps. Original commit message from CVS: No "format" property in new RGB caps. --- ext/hermes/yuv2rgb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/hermes/yuv2rgb.c b/ext/hermes/yuv2rgb.c index 62121ff5..a1669b25 100644 --- a/ext/hermes/yuv2rgb.c +++ b/ext/hermes/yuv2rgb.c @@ -107,7 +107,7 @@ static GstColorSpaceYUVTables * gst_colorspace_init_yuv(long depth, GstColorSpaceConverter* gst_colorspace_yuv2rgb_get_converter (GstCaps *from, GstCaps *to) { - guint32 from_space, to_space; + guint32 from_space; GstColorSpaceConverter *new; gint to_bpp; @@ -120,11 +120,9 @@ gst_colorspace_yuv2rgb_get_converter (GstCaps *from, GstCaps *to) new->color_tables = NULL; gst_caps_get_fourcc_int (from, "format", &from_space); - gst_caps_get_fourcc_int (to, "format", &to_space); gst_caps_get_int (to, "bpp", &to_bpp); /* FIXME we leak new here. */ - g_return_val_if_fail (to_space == GST_STR_FOURCC ("RGB "), NULL); switch(from_space) { case GST_MAKE_FOURCC ('Y','V','1','2'): -- cgit v1.2.1