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
commit8023d9492dfd1bbed93fd6eef1531c1968b6310a (patch)
tree4364b7a9b0533abc3d9e8f7c54325490bbd5dbf7 /sys/v4l2/gstv4l2colorbalance.c
parent06e6b4ec676f4a0fdbb34aaab5c0c8689da60b1a (diff)
downloadgst-plugins-bad-8023d9492dfd1bbed93fd6eef1531c1968b6310a.tar.gz
gst-plugins-bad-8023d9492dfd1bbed93fd6eef1531c1968b6310a.tar.bz2
gst-plugins-bad-8023d9492dfd1bbed93fd6eef1531c1968b6310a.zip
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;