From patchwork Wed Jul 28 14:37:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vedant Paranjape X-Patchwork-Id: 13138 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 152DCC3230 for ; Wed, 28 Jul 2021 14:38:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6A41660506; Wed, 28 Jul 2021 16:38:08 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="g501Lw6U"; dkim-atps=neutral Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B4E4A60506 for ; Wed, 28 Jul 2021 16:38:06 +0200 (CEST) Received: by mail-pj1-x1031.google.com with SMTP id ca5so5386945pjb.5 for ; Wed, 28 Jul 2021 07:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5WW6h3MEnf4ttO2gQw4Mk5Tmn7+JEghWnCcMxdeSQP8=; b=g501Lw6UrhyNj84e4GDa/hK5c3rPR8r9f8uiDfyxBpEAfA40KM3+IbmwqM8RFf3yaI w3lc8oXqB3NSLpdocVDSZIqdZ1WnE1QgOGT5PZYsM4hAQfm0PW0DF72ThXsmh1v2ad4+ vuw6ruAaSOSEevXKn3n1GEA3q3Of0vNWy10OPV6ST1JtP+GZei2pZ4Muzr7JhT72ZUa2 i/yS6k6SQttfK98XEEttjnCBmk27ewkiWjWtARlu2ch/BewsqpHC07v1H8QJjueL8GQd o9Ohs3FuEnDAipIpYBdDKaIOxhNuyNIOavZqoMn20zvRiAnARLE/s42zoJklbp5hoY6e okoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5WW6h3MEnf4ttO2gQw4Mk5Tmn7+JEghWnCcMxdeSQP8=; b=jIluW2aQp5ISYJIsT9pfWl/3bSbhTx/CuvnVMpBMhY5MyJ3tUJ9xruD8qFna9pueXi 3gwzf5QK0NLtcL2x5mQCNqEZhLMopI+jRhpxjDTHy+lBvnJpOLMgzEEjKLeAp3Ec+wa6 e9j1uKs0ejCnth2I9Gj1boQKaLXm4X0U1/sanKgJwUxovZUklgO5XJke27oMzgkFzDbk l/p7yHN8/JuZp4FEa8lwBalVtEBGy6qWnXeMb1QNRZrceIz6BX+gpqyu+0aoCBy+tDJr PC928/Mm4kH82JpuNDiwkDdjR4sEIdjr1F42KPuZMI9eJSXoN+016EW7xf+UVgC1e34q e5hw== X-Gm-Message-State: AOAM531qgKueaNbS4hHBtk+E1lFCD+JKQxbabc2cVZw/Ru5mXXrG45LG 8inyuLAaRa3OIm2MZxxYr/SKQ35W+AQd2acxR/M= X-Google-Smtp-Source: ABdhPJyAKDcXhlgf6dXiBQKo+lbI+qXAS8kDXSULIsY5S7mNO1XWCJOAU8GZScxcBh84XOW1K2Zh9A== X-Received: by 2002:a62:36c5:0:b029:32b:83fa:3a3e with SMTP id d188-20020a6236c50000b029032b83fa3a3emr232764pfa.52.1627483084859; Wed, 28 Jul 2021 07:38:04 -0700 (PDT) Received: from localhost.localdomain ([1.186.165.31]) by smtp.googlemail.com with ESMTPSA id h14sm194523pfo.47.2021.07.28.07.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 07:38:04 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Wed, 28 Jul 2021 20:07:37 +0530 Message-Id: <20210728143737.510546-1-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2] gstreamer: Update format specifier in Request Pad template X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vedant Paranjape Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Change format specifier %s to %u in name template field of request pad template. Pad names are as follows, src_0, src_1, etc. So, instead of using string format specifier, unsigned integer format specifier is used. Signed-off-by: Vedant Paranjape Reviewed-by: Paul Elder --- src/gstreamer/gstlibcamerasrc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp index bb8ea07a..553fad02 100644 --- a/src/gstreamer/gstlibcamerasrc.cpp +++ b/src/gstreamer/gstlibcamerasrc.cpp @@ -149,7 +149,7 @@ GstStaticPadTemplate src_template = { /* More pads can be requested in state < PAUSED */ GstStaticPadTemplate request_src_template = { - "src_%s", GST_PAD_SRC, GST_PAD_REQUEST, TEMPLATE_CAPS + "src_%u", GST_PAD_SRC, GST_PAD_REQUEST, TEMPLATE_CAPS }; void