[MOVED FROM BAD 63/68] colorspace: set dithering enum directly
authorDavid Schleef <ds@schleef.org>
Sat, 26 Feb 2011 03:59:05 +0000 (19:59 -0800)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 15 Jun 2011 14:12:56 +0000 (16:12 +0200)
gst/colorspace/gstcolorspace.c

index bdd1c89..3d934a5 100644 (file)
@@ -557,11 +557,7 @@ gst_csp_transform (GstBaseTransform * btrans, GstBuffer * inbuf,
           space->to_format == GST_VIDEO_FORMAT_UNKNOWN))
     goto unknown_format;
 
-  if (space->dither) {
-    colorspace_convert_set_dither (space->convert, 1);
-  } else {
-    colorspace_convert_set_dither (space->convert, 0);
-  }
+  colorspace_convert_set_dither (space->convert, space->dither);
 
   colorspace_convert_convert (space->convert, GST_BUFFER_DATA (outbuf),
       GST_BUFFER_DATA (inbuf));