linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] v4l-utils: mc_nextgen_test fix -d option parsing
@ 2015-09-29 17:47 Shuah Khan
  0 siblings, 0 replies; only message in thread
From: Shuah Khan @ 2015-09-29 17:47 UTC (permalink / raw)
  To: mchehab, hans.verkuil; +Cc: Shuah Khan, linux-media

mc_nextgen_test -d option doesn't work due to a missing break.
Fix the bug so -d, --device=DEVICE option can accept a device
name. Without this fix, mc_nextgen_test assumes default device
name.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 contrib/test/mc_nextgen_test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/test/mc_nextgen_test.c b/contrib/test/mc_nextgen_test.c
index 490f048..e287096 100644
--- a/contrib/test/mc_nextgen_test.c
+++ b/contrib/test/mc_nextgen_test.c
@@ -89,6 +89,7 @@ static error_t parse_opt(int k, char *arg, struct argp_state *state)
 	case 'd':
 		strncpy(media_device, arg, sizeof(media_device) - 1);
 		media_device[sizeof(media_device)-1] = '\0';
+		break;
 
 	case '?':
 		argp_state_help(state, state->out_stream,
-- 
2.1.4


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

only message in thread, other threads:[~2015-09-29 17:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-29 17:47 [PATCH] v4l-utils: mc_nextgen_test fix -d option parsing Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).