All of lore.kernel.org
 help / color / mirror / Atom feed
* patch for display of readbuffers in v4l2-ctl-misc.cpp
@ 2014-01-16 17:34 Andreas Weber
  0 siblings, 0 replies; only message in thread
From: Andreas Weber @ 2014-01-16 17:34 UTC (permalink / raw)
  To: linux-media

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

Dear maintainers,
I think there is a bug in utils/v4l2-ctl/v4l2-ctl-misc.cpp:394
  printf("\tRead buffers     : %d\n", parm.parm.output.writebuffers);
Please consider the attached patch.

-- Andy

[-- Attachment #2: fix_display_number_of_readbuffers.patch --]
[-- Type: text/x-diff, Size: 861 bytes --]

>From c3b6188d385dce46bed3e8803f661cf0e501522e Mon Sep 17 00:00:00 2001
From: Andreas Weber <andreas.weber@hs-offenburg.de>
Date: Thu, 16 Jan 2014 18:27:14 +0100
Subject: [PATCH] v4l2-ctl-misc.cpp: bugfix display #of readbuffers

---
 utils/v4l2-ctl/v4l2-ctl-misc.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/v4l2-ctl/v4l2-ctl-misc.cpp b/utils/v4l2-ctl/v4l2-ctl-misc.cpp
index 6857fff..4d11ec8 100644
--- a/utils/v4l2-ctl/v4l2-ctl-misc.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-misc.cpp
@@ -391,7 +391,7 @@ void misc_get(int fd)
 				printf("\tFrames per second: %.3f (%d/%d)\n",
 						(1.0 * tf.denominator) / tf.numerator,
 						tf.denominator, tf.numerator);
-			printf("\tRead buffers     : %d\n", parm.parm.output.writebuffers);
+			printf("\tRead buffers     : %d\n", parm.parm.capture.readbuffers);
 		}
 	}
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-16 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 17:34 patch for display of readbuffers in v4l2-ctl-misc.cpp Andreas Weber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.