Browse Source

Fix check on media file descriptor

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Paul Kocialkowski 6 years ago
parent
commit
0ebf894dec
1 changed files with 2 additions and 2 deletions
  1. 2 2
      v4l2-request-test.c

+ 2 - 2
v4l2-request-test.c

@@ -335,8 +335,8 @@ int main(int argc, char *argv[])
 	}
 
 	media_fd = open(config.media_path, O_RDWR | O_NONBLOCK, 0);
-	if (video_fd < 0) {
-		fprintf(stderr, "Unable to open video node: %s\n",
+	if (media_fd < 0) {
+		fprintf(stderr, "Unable to open media node: %s\n",
 			strerror(errno));
 		goto error;
 	}