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 <shua...@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

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

Reply via email to