From 51b1537e45083917b1dda4375d9761a2f7638e70 Mon Sep 17 00:00:00 2001 From: Edgard Lima Date: Sat, 25 Mar 2006 05:31:28 +0000 Subject: Just make few things more robust and also some identation. Original commit message from CVS: Just make few things more robust and also some identation. --- sys/v4l2/gstv4l2colorbalance.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/v4l2/gstv4l2colorbalance.c') diff --git a/sys/v4l2/gstv4l2colorbalance.c b/sys/v4l2/gstv4l2colorbalance.c index 9c2cfa2c..06805fcc 100644 --- a/sys/v4l2/gstv4l2colorbalance.c +++ b/sys/v4l2/gstv4l2colorbalance.c @@ -79,7 +79,7 @@ gst_v4l2_color_balance_channel_class_init (GstV4l2ColorBalanceChannelClass * static void gst_v4l2_color_balance_channel_init (GstV4l2ColorBalanceChannel * channel) { - channel->index = 0; + channel->id = (guint32) - 1; } void @@ -125,7 +125,7 @@ gst_v4l2_color_balance_set_value (GstColorBalance * balance, g_return_if_fail (gst_v4l2_color_balance_contains_channel (v4l2element, v4l2channel)); - gst_v4l2_set_attribute (v4l2element, v4l2channel->index, value); + gst_v4l2_set_attribute (v4l2element, v4l2channel->id, value); } static gint @@ -142,7 +142,7 @@ gst_v4l2_color_balance_get_value (GstColorBalance * balance, g_return_val_if_fail (gst_v4l2_color_balance_contains_channel (v4l2element, v4l2channel), 0); - if (!gst_v4l2_get_attribute (v4l2element, v4l2channel->index, &value)) + if (!gst_v4l2_get_attribute (v4l2element, v4l2channel->id, &value)) return 0; return value; -- cgit