summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/gstv4l2colorbalance.c
diff options
context:
space:
mode:
authorEdgard Lima <edgard.lima@indt.org.br>2006-03-25 05:31:28 +0000
committerEdgard Lima <edgard.lima@indt.org.br>2006-03-25 05:31:28 +0000
commit51b1537e45083917b1dda4375d9761a2f7638e70 (patch)
treeb097d0b355d4df6eacd1aacaacc9a73aa71af820 /sys/v4l2/gstv4l2colorbalance.c
parent1aca0c541b4381deac3940125583c46a15c381ca (diff)
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.
Diffstat (limited to 'sys/v4l2/gstv4l2colorbalance.c')
-rw-r--r--sys/v4l2/gstv4l2colorbalance.c6
1 files changed, 3 insertions, 3 deletions
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;