[PATCH] v4l-utils: mc_nextgen_test fix -d option parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux