Show a patch.

GET /api/1.1/patches/16711/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 16711,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/16711/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16711/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20220721103020.1066512-1-umang.jain@ideasonboard.com>",
    "date": "2022-07-21T10:30:20",
    "name": "[libcamera-devel] test: gstreamer_single_stream: Check for cameras before running",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a30b20a364484de26c608498feab87e9e3b0aa8c",
    "submitter": {
        "id": 86,
        "url": "https://patchwork.libcamera.org/api/1.1/people/86/?format=api",
        "name": "Umang Jain",
        "email": "umang.jain@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/16711/mbox/",
    "series": [
        {
            "id": 3312,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3312/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3312",
            "date": "2022-07-21T10:30:20",
            "name": "[libcamera-devel] test: gstreamer_single_stream: Check for cameras before running",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3312/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16711/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16711/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id E1078BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 21 Jul 2022 10:30:31 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3F808603F1;\n\tThu, 21 Jul 2022 12:30:31 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 03933601B8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 21 Jul 2022 12:30:30 +0200 (CEST)",
            "from perceval.ideasonboard.com (unknown\n\t[IPv6:2401:4900:1f3f:a2d:c6dd:7a7c:3d3c:dbb9])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 5D430496;\n\tThu, 21 Jul 2022 12:30:28 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658399431;\n\tbh=gj/4uLSmucRm59rf11/uvkJuaxlh1Btm5tvywjg8UsI=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=h4xm/iIueRvTnV3VnyRVwJr1THK/ZWeSr3zKbcr2oquI4841/r2q8cmYVVMDREas9\n\tC6Q3EpzNa3Kq3u/2yLxWHM+EmIR1jTRlpQRNvIOvkQDkJevDDdqncw8v6Pq8O/x1D8\n\tjE7cCAfi7C7rpaf6ogWFyUP2px9Y5H6WLVS36l4pecC4/SZ3xMYu5Eu8SeT70UBE4h\n\t5heIBJdMeTUWqVH+NlAahg1nrKHZiLY9yyzPHx6gBiDz68MPn/v28AVh9B2T/KilxY\n\tLggLAhdBAqcV0M/UlkqXvKj7nyBb4dW6rt41SL2ymTA4mjoAZKp+2k9HE+LZ54fTo9\n\tSoJSSCOQnwG/A==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1658399429;\n\tbh=gj/4uLSmucRm59rf11/uvkJuaxlh1Btm5tvywjg8UsI=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=MhF/caaZE7jqovVjJS3Skbt1zpnH39R58lsKqs718FPZVkM2pHee4ahTUfcdAmNR6\n\t+5Ylv3kofgYz4gMNw+LovAWyYj+KljUNlz7p+YrQYlKbpbEmo384/hK/4wbpJSnwWF\n\tWlr4VDFqCqllV6nmqR+WmmTQIy1TOoPjBqZhU5XY="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"MhF/caaZ\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 21 Jul 2022 16:00:20 +0530",
        "Message-Id": "<20220721103020.1066512-1-umang.jain@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.31.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] test: gstreamer_single_stream: Check for\n\tcameras before running",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "From": "Umang Jain via libcamera-devel <libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Umang Jain <umang.jain@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Before running or setting up the pipeline, check for cameras availablity\nfirst. If no cameras are available, skip the test.\n\nSigned-off-by: Umang Jain <umang.jain@ideasonboard.com>\n---\n test/gstreamer/gstreamer_single_stream_test.cpp | 13 +++++++++++++\n 1 file changed, 13 insertions(+)",
    "diff": "diff --git a/test/gstreamer/gstreamer_single_stream_test.cpp b/test/gstreamer/gstreamer_single_stream_test.cpp\nindex a0dd12cf..1e0801e8 100644\n--- a/test/gstreamer/gstreamer_single_stream_test.cpp\n+++ b/test/gstreamer/gstreamer_single_stream_test.cpp\n@@ -8,6 +8,8 @@\n #include <iostream>\n #include <unistd.h>\n \n+#include <libcamera/libcamera.h>\n+\n #include <gst/gst.h>\n \n #include \"gstreamer_test.h\"\n@@ -29,6 +31,17 @@ protected:\n \t\tif (status_ != TestPass)\n \t\t\treturn status_;\n \n+\t\tlibcamera::CameraManager cm;\n+\t\tcm.start();\n+\n+\t\tbool cameraFound = cm.cameras().size() > 1 ? true : false;\n+\t\tif (!cameraFound) {\n+\t\t\tcm.stop();\n+\t\t\treturn TestSkip;\n+\t\t}\n+\n+\t\tcm.stop();\n+\n \t\tconst gchar *streamDescription = \"videoconvert ! fakesink\";\n \t\tg_autoptr(GError) error0 = NULL;\n \t\tstream0_ = gst_parse_bin_from_description_full(streamDescription, TRUE,\n",
    "prefixes": [
        "libcamera-devel"
    ]
}