diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2006-03-25 05:31:28 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2006-03-25 05:31:28 +0000 |
commit | 8023d9492dfd1bbed93fd6eef1531c1968b6310a (patch) | |
tree | 4364b7a9b0533abc3d9e8f7c54325490bbd5dbf7 /sys/v4l2/gstv4l2tuner.c | |
parent | 06e6b4ec676f4a0fdbb34aaab5c0c8689da60b1a (diff) | |
download | gst-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/gstv4l2tuner.c')
-rw-r--r-- | sys/v4l2/gstv4l2tuner.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/v4l2/gstv4l2tuner.c b/sys/v4l2/gstv4l2tuner.c index 9fb4e3cd..add688c6 100644 --- a/sys/v4l2/gstv4l2tuner.c +++ b/sys/v4l2/gstv4l2tuner.c @@ -91,9 +91,9 @@ gst_v4l2_tuner_channel_class_init (GstV4l2TunerChannelClass * klass) static void gst_v4l2_tuner_channel_init (GstV4l2TunerChannel * channel) { - channel->index = 0; - channel->tuner = 0; - channel->audio = 0; + channel->index = (guint32) - 1; + channel->tuner = (guint32) - 1; + channel->audio = (guint32) - 1; } GType @@ -314,8 +314,8 @@ gst_v4l2_tuner_get_frequency (GstTuner * mixer, GstTunerChannel * channel) g_return_val_if_fail (GST_V4L2_IS_OPEN (v4l2element), 0); g_return_val_if_fail (GST_TUNER_CHANNEL_HAS_FLAG (channel, GST_TUNER_CHANNEL_FREQUENCY), 0); - g_return_val_if_fail (gst_v4l2_tuner_contains_channel (v4l2element, - v4l2channel), 0); + g_return_val_if_fail (gst_v4l2_tuner_contains_channel + (v4l2element, v4l2channel), 0); gst_v4l2_get_input (v4l2element, &chan); if (chan == GST_V4L2_TUNER_CHANNEL (channel)->index && @@ -338,8 +338,8 @@ gst_v4l2_tuner_signal_strength (GstTuner * mixer, GstTunerChannel * channel) g_return_val_if_fail (GST_V4L2_IS_OPEN (v4l2element), 0); g_return_val_if_fail (GST_TUNER_CHANNEL_HAS_FLAG (channel, GST_TUNER_CHANNEL_FREQUENCY), 0); - g_return_val_if_fail (gst_v4l2_tuner_contains_channel (v4l2element, - v4l2channel), 0); + g_return_val_if_fail (gst_v4l2_tuner_contains_channel + (v4l2element, v4l2channel), 0); gst_v4l2_get_input (v4l2element, &chan); if (chan == GST_V4L2_TUNER_CHANNEL (channel)->index && |