From 9ca2a6be6ea15beb9088212a7b8ba495857cca4b Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 13 Jan 2011 18:20:24 +0100 Subject: minor formatting --- radio.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/radio.c b/radio.c index 8139894..614702f 100644 --- a/radio.c +++ b/radio.c @@ -85,9 +85,10 @@ static void cfm_radio_tuner_power(CFmRadio *self, gboolean enable) if (priv->fd == -1) return; - vctrl.id = V4L2_CID_AUDIO_MUTE; - vctrl.value = enable ? 0 : 1; - res = ioctl(priv->fd, VIDIOC_S_CTRL, &vctrl); + vctrl.id = V4L2_CID_AUDIO_MUTE; + vctrl.value = enable ? 0 : 1; + res = ioctl(priv->fd, VIDIOC_S_CTRL, &vctrl); + if (res < 0) { perror("VIDIOC_S_CTRL"); } @@ -213,10 +214,10 @@ static void cfm_radio_init_tuner(CFmRadio *self, const gchar * device) if (priv->precise_tuner) { priv->range_low = tuner.rangelow * 62.5f; - priv->range_high = tuner.rangehigh * 62.5f; + priv->range_high = tuner.rangehigh * 62.5f; } else { priv->range_low = tuner.rangelow * 62500; - priv->range_high = tuner.rangehigh * 62500; + priv->range_high = tuner.rangehigh * 62500; } g_debug("Tuner detected (from %lu to %lu)\n", priv->range_low, priv->range_high); -- cgit v1.2.3