sys/v4l/v4l_calls.c: Fix logic bug.

Original commit message from CVS:
* sys/v4l/v4l_calls.c: (gst_v4l_get_chan_names):
Fix logic bug.
This commit is contained in:
Ronald S. Bultje 2004-12-01 22:47:41 +00:00
parent 8471836cea
commit 56ba2a4a6d
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-12-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* sys/v4l/v4l_calls.c: (gst_v4l_get_chan_names):
Fix logic bug.
2004-12-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ogg/gstoggdemux.c: (gst_ogg_type_find):

View file

@ -317,13 +317,13 @@ gst_v4l_get_chan_names (GstV4lElement * v4lelement)
for (n = 0;; n++) {
if (n >= vchan.tuners) {
vtun.tuner = 0;
vtun.tuner = 0; /* default */
} else {
vtun.tuner = n;
if (ioctl (v4lelement->video_fd, VIDIOCGTUNER, &vtun) >= 0)
if (ioctl (v4lelement->video_fd, VIDIOCGTUNER, &vtun) < 0)
continue; /* no more tuners */
if (strcmp (vtun.name, vchan.name) != 0) {
continue;
continue; /* not this one */
}
}
v4lchannel->tuner = n;