From patchwork Tue Sep 29 17:47:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 7288831 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 79B30BEEA4 for ; Tue, 29 Sep 2015 17:48:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A9073206C3 for ; Tue, 29 Sep 2015 17:48:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6699206B6 for ; Tue, 29 Sep 2015 17:48:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935300AbbI2RsC (ORCPT ); Tue, 29 Sep 2015 13:48:02 -0400 Received: from resqmta-po-08v.sys.comcast.net ([96.114.154.167]:47641 "EHLO resqmta-po-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964820AbbI2Rr6 (ORCPT ); Tue, 29 Sep 2015 13:47:58 -0400 Received: from resomta-po-02v.sys.comcast.net ([96.114.154.226]) by resqmta-po-08v.sys.comcast.net with comcast id P5mu1r0044tLnxL015nx7D; Tue, 29 Sep 2015 17:47:57 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-02v.sys.comcast.net with comcast id P5nw1r0061LXgTt015nwpY; Tue, 29 Sep 2015 17:47:56 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 0A29DA14FE; Tue, 29 Sep 2015 11:47:55 -0600 (MDT) From: Shuah Khan To: mchehab@osg.samsung.com, hans.verkuil@cisco.com Cc: Shuah Khan , linux-media@vger.kernel.org Subject: [PATCH] v4l-utils: mc_nextgen_test fix -d option parsing Date: Tue, 29 Sep 2015 11:47:54 -0600 Message-Id: <1443548874-4360-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.1.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1443548877; bh=Kz83SiH7gI5I6GKNysvoG7tVYUI4WrhBW36dX4fpLcQ=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=YQ/mjQLV7RTK56Kf3Q64ZNI3FaahAvFXAjw/3Zimn4znXNOYT30dOJ0nohvLTKGad pDKOe3jBDMmKy6rQXX4S5jh6oY3GhrQpzaprh2epvzXLNDfkg+ZVGvW/jEVWUii5w0 AaRieOT7YE8HtTk6tBT0Com37BQnlGqTtW+rdg+zd9uwbVD6duUDDKKbFOazacglgp KUIqUR0foZQJ26M0oU3w0C7ZXtp/GnmbzS6D9OSWOrW9pMSpIWegBEieKKaPT3iVYJ h7Om2i0KnCtCUIGekQTSe/Aeg1XtnBaJK0iWmybzVHctBZh21K/qmjfQa8tYpUadde ZSQesqcrsEbLg== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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,