diff options
author | Brijesh Singh <brijesh.ksingh@gmail.com> | 2009-01-30 14:40:51 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-01-30 14:42:44 +0100 |
commit | 74f84ae47fb4a82682769aff7ce63f181b70d483 (patch) | |
tree | cd488d4b9e6463911cfe00771b57426f7b2d62ba /sys | |
parent | cd906c21f8051aa4cd6442f014c8280ae0c9d9f9 (diff) |
Fix comparison of the tuner norms
The V4L2 tuner norms that a device supports could
be a subset of some norm (e.g. NTSC instead of NTSC_M).
The comparison should be done by & instead of ==.
See http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec-single/v4l2.html#STANDARD
Fixes bug #569820.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2tuner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2tuner.c b/sys/v4l2/gstv4l2tuner.c index e9f5af54..c5f84426 100644 --- a/sys/v4l2/gstv4l2tuner.c +++ b/sys/v4l2/gstv4l2tuner.c @@ -246,7 +246,7 @@ gst_v4l2_tuner_get_norm (GstV4l2Object * v4l2object) gst_v4l2_get_norm (v4l2object, &norm); for (item = v4l2object->norms; item != NULL; item = item->next) { - if (norm == GST_V4L2_TUNER_NORM (item->data)->index) + if (norm & GST_V4L2_TUNER_NORM (item->data)->index) return (GstTunerNorm *) item->data; } |