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.
This commit is contained in:
Tim-Philipp Müller 2008-06-02 20:09:14 +00:00
parent d868077048
commit d5b8246724
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2008-06-02 Tim-Philipp Müller <tim.muller at collabora co uk>
* 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 <tim.muller at collabora co uk>
* ext/pango/Makefile.am:

View file

@ -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;