summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-07-14 08:28:44 +0000
committerDavid Schleef <ds@schleef.org>2003-07-14 08:28:44 +0000
commit77bb6156458102982d25d2e2b557bbfeda4bc280 (patch)
treea7ee5ae5be1273c81609eac32806d5e95a263a96 /ext
parent3c4d62fc2fb14969c39561ce5d13b8d6e94e181d (diff)
downloadgst-plugins-bad-77bb6156458102982d25d2e2b557bbfeda4bc280.tar.gz
gst-plugins-bad-77bb6156458102982d25d2e2b557bbfeda4bc280.tar.bz2
gst-plugins-bad-77bb6156458102982d25d2e2b557bbfeda4bc280.zip
No "format" property in new RGB caps.
Original commit message from CVS: No "format" property in new RGB caps.
Diffstat (limited to 'ext')
-rw-r--r--ext/hermes/yuv2rgb.c4
1 files changed, 1 insertions, 3 deletions
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'):