mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
8471836cea
commit
56ba2a4a6d
2 changed files with 8 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue