From 18c312473a3d4cc316ce1346d755391b7491427f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 25 Feb 2011 19:59:05 -0800 Subject: [PATCH] [MOVED FROM BAD 63/68] colorspace: set dithering enum directly --- gst/colorspace/gstcolorspace.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gst/colorspace/gstcolorspace.c b/gst/colorspace/gstcolorspace.c index bdd1c89..3d934a5 100644 --- a/gst/colorspace/gstcolorspace.c +++ b/gst/colorspace/gstcolorspace.c @@ -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)); -- 2.7.4