mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
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.
This commit is contained in:
parent
cd906c21f8
commit
74f84ae47f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue