From d5b8246724d4d1728dd8d77705c498b7f65e5fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 2 Jun 2008 20:09:14 +0000 Subject: [PATCH] sys/v4l/v4l_calls.c: minrange and maxrange are scaled according to the frequency multiplier. Original commit message from CVS: * sys/v4l/v4l_calls.c: (gst_v4l_get_chan_names): minrange and maxrange are scaled according to the frequency multiplier. --- ChangeLog | 6 ++++++ sys/v4l/v4l_calls.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4bd4eb0a74..eb5270a64e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-02 Tim-Philipp Müller + + * sys/v4l/v4l_calls.c: (gst_v4l_get_chan_names): + minrange and maxrange are scaled according to the frequency + multiplier. + 2008-06-02 Tim-Philipp Müller * ext/pango/Makefile.am: diff --git a/sys/v4l/v4l_calls.c b/sys/v4l/v4l_calls.c index 4d336d4fd3..0baf5ade1c 100644 --- a/sys/v4l/v4l_calls.c +++ b/sys/v4l/v4l_calls.c @@ -334,8 +334,8 @@ gst_v4l_get_chan_names (GstV4lElement * v4lelement) channel->flags |= GST_TUNER_CHANNEL_FREQUENCY; channel->freq_multiplicator = 62.5 * ((vtun.flags & VIDEO_TUNER_LOW) ? 1 : 1000); - channel->min_frequency = vtun.rangelow; - channel->max_frequency = vtun.rangehigh; + channel->min_frequency = vtun.rangelow * channel->freq_multiplicator; + channel->max_frequency = vtun.rangehigh * channel->freq_multiplicator; channel->min_signal = 0; channel->max_signal = 0xffff; break;