summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@users.noreply.github.com>2016-11-28 20:14:35 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-11-28 20:14:35 +0100
commitb5ebefe46193de478d75a88a787802085499e2b6 (patch)
tree72cddae6153ab42562c14307d5c531bbca379e27 /modules
parenta625de4a3f8ea23fba03a9b0ec73d3cdac6eabf0 (diff)
v4l2: don't check for native/emulated format (#179)
libv4l2 appends emulated formats to the end of the list, so there is no real chance that native format will follow if we already stumbled upon emulated one.
Diffstat (limited to 'modules')
-rw-r--r--modules/v4l2/v4l2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/v4l2/v4l2.c b/modules/v4l2/v4l2.c
index 1d1a023..5f7244a 100644
--- a/modules/v4l2/v4l2.c
+++ b/modules/v4l2/v4l2.c
@@ -221,11 +221,7 @@ static int v4l2_init_device(struct vidsrc_st *st, const char *dev_name,
fmts.index++) {
if (match_fmt(fmts.pixelformat) != VID_FMT_N) {
st->pixfmt = fmts.pixelformat;
-#ifdef HAVE_LIBV4L2
- /* Prefer native formats */
- if (fmts.flags ^ V4L2_FMT_FLAG_EMULATED)
-#endif
- break;
+ break;
}
}