summaryrefslogtreecommitdiff
path: root/gst/colorspace
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2011-02-25 19:59:05 -0800
committerDavid Schleef <ds@schleef.org>2011-02-25 20:00:41 -0800
commit0bb6b6f2452b8cb7d9aca3c6d31e0ed87db24e23 (patch)
tree2a5e3fccf9660e024b4afd4add2e89f8660d93c1 /gst/colorspace
parentafc74832472afc9f25e90738e76a266e8005a8c7 (diff)
colorspace: set dithering enum directly
Diffstat (limited to 'gst/colorspace')
-rw-r--r--gst/colorspace/gstcolorspace.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gst/colorspace/gstcolorspace.c b/gst/colorspace/gstcolorspace.c
index bdd1c89ea..3d934a5ed 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));