mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +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>
|
2004-12-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* ext/ogg/gstoggdemux.c: (gst_ogg_type_find):
|
* ext/ogg/gstoggdemux.c: (gst_ogg_type_find):
|
||||||
|
|
|
@ -317,13 +317,13 @@ gst_v4l_get_chan_names (GstV4lElement * v4lelement)
|
||||||
|
|
||||||
for (n = 0;; n++) {
|
for (n = 0;; n++) {
|
||||||
if (n >= vchan.tuners) {
|
if (n >= vchan.tuners) {
|
||||||
vtun.tuner = 0;
|
vtun.tuner = 0; /* default */
|
||||||
} else {
|
} else {
|
||||||
vtun.tuner = n;
|
vtun.tuner = n;
|
||||||
if (ioctl (v4lelement->video_fd, VIDIOCGTUNER, &vtun) >= 0)
|
if (ioctl (v4lelement->video_fd, VIDIOCGTUNER, &vtun) < 0)
|
||||||
continue; /* no more tuners */
|
continue; /* no more tuners */
|
||||||
if (strcmp (vtun.name, vchan.name) != 0) {
|
if (strcmp (vtun.name, vchan.name) != 0) {
|
||||||
continue;
|
continue; /* not this one */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
v4lchannel->tuner = n;
|
v4lchannel->tuner = n;
|
||||||
|
|
Loading…
Reference in a new issue