diff mbox

v4l-utils: mc_nextgen_test fix -d option parsing

Message ID 1443548874-4360-1-git-send-email-shuahkh@osg.samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Shuah Khan Sept. 29, 2015, 5:47 p.m. UTC
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 mbox

Patch

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,