summaryrefslogtreecommitdiff
path: root/v4l2-apps/test/driver-test.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-01-21 23:21:41 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-01-21 23:21:41 -0200
commita4afacc02da0c558bd2e455a63d16a9c4301e862 (patch)
tree186690a818ee8d0ff8386785c4c061f928376f0c /v4l2-apps/test/driver-test.c
parentd8f7b2bfd824a45f93ffb0b3d78976d6e58b79c3 (diff)
downloadmediapointer-dvb-s2-a4afacc02da0c558bd2e455a63d16a9c4301e862.tar.gz
mediapointer-dvb-s2-a4afacc02da0c558bd2e455a63d16a9c4301e862.tar.bz2
error check were wrong, since at userspace, error codes are positive vals
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l2-apps/test/driver-test.c')
-rw-r--r--v4l2-apps/test/driver-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l2-apps/test/driver-test.c b/v4l2-apps/test/driver-test.c
index eaa099fac..a2ac365a3 100644
--- a/v4l2-apps/test/driver-test.c
+++ b/v4l2-apps/test/driver-test.c
@@ -36,7 +36,7 @@ int main(void)
perror("open /dev/video0");
return -1;
}
- if (v4l2_enum_stds (&drv)<0) {
+ if (v4l2_enum_stds (&drv)) {
perror("enum_stds");
printf("Error! Driver is not reporting supported STD, frames/sec and number of lines!\n Trying to continue anyway...\n");
} else {