diff --git a/ChangeLog b/ChangeLog index b156fdcc60..2ad1a6ca28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-12-01 Ronald S. Bultje + + * sys/v4l/v4l_calls.c: (gst_v4l_get_chan_names): + Fix logic bug. + 2004-12-01 Ronald S. Bultje * ext/ogg/gstoggdemux.c: (gst_ogg_type_find): diff --git a/sys/v4l/v4l_calls.c b/sys/v4l/v4l_calls.c index 000cc79e3d..5d2fb9aca6 100644 --- a/sys/v4l/v4l_calls.c +++ b/sys/v4l/v4l_calls.c @@ -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;