From patchwork Sun Jan 2 09:49:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Diederick C. Niehorster" X-Patchwork-Id: 33004 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp15299656iog; Sun, 2 Jan 2022 01:50:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJweMdgWAwHFUJxL7XCciZFDTqAloPgBPmokY2eibOX0PkETmyya2Ohu5/HCgtWIX9L1VPjK X-Received: by 2002:a17:906:730a:: with SMTP id di10mr33518692ejc.562.1641117016510; Sun, 02 Jan 2022 01:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641117016; cv=none; d=google.com; s=arc-20160816; b=0vln+6Bb7jhFIa0UDxer8nRC50qQcoZ4YFzWKDzmPYcTBAOq19Cd6pxXJWfx7QnAb0 uiA+3Q7qSGNP/qNUwVqKiqhgt8ChGXH1uZJvhl+ZC6bt86eqXDfuQ8YZC+uMkaWhNwA/ PQ+094DC3XOsJGTj2/XKBPnFUIeYL4kpYmNQ63BWYTadsrfyueWvIIX9FYayUyt3meqv sPgjVDN5JrWWxKA2kQuEz9LZlSVcdLr48N2tPI83DXsUhsu/jububPEROpdlVQpNQrwy GCB6fXtNk/zye3j2U+8bz8VGgxe9M208C4dNG7npyQreeLNL3ARJIPJ9HjfXRYYYpajl 3Avw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=FdmX74/aArUETysTLH9PYfMrTlhTyt/AdZ7pp/C9d2k=; b=uOaCPtiDh/bh4FNzpmJNTvGX/aeDOlgkmp33L1LJ04kWyvDgYOfHfnS+/YK4wvC+63 sEvBzEODrF3aGDxsKL8raZqDl4brh2G4LzVrXgrCptiOzBK7vAUMCV6EOWh13J6XaMcj 7zvNDCapiX262Fw0/FD3LHAlkzhy4yks1dqZBT2WcPtHs2vnudBmbCloWOrYzQTrFza6 DkvWhShSBFT24mXtiF0hQA02s8WeB1hALjZKlpG5lNPXrHq1ztyarMBf/Xrv2GChcwJt azc8h/YLN3uZUmlsH0tms4EKqftgn12Ef6UILyHkWoDyY/YQq/lJQno3eJzqP3qT60bJ 83Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=akTBZfl3; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id qk36si15458638ejc.267.2022.01.02.01.50.15; Sun, 02 Jan 2022 01:50:16 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=akTBZfl3; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0293B68B132; Sun, 2 Jan 2022 11:50:11 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9839A68AF71 for ; Sun, 2 Jan 2022 11:50:04 +0200 (EET) Received: by mail-ed1-f53.google.com with SMTP id z9so54966739edm.10 for ; Sun, 02 Jan 2022 01:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dsh8n8S+WjsLE7De1qEZaAtaPhu4TJnaTc3ZRgWQ1o4=; b=akTBZfl3WP13VNKdvZ79lOtw+KMD+2pVsxiKs+hOnxxOsQVBxyUP61XOjKQLtlkpSq 5p31vCbUMAfJa81REVVH+CqLX1sizTK6ciGJ8XJdR/pC0z1nbz03C/uQRFrIkX3cYKD6 DPHhyo2393dnjVdCmpX22y5twgiIyYIEc6sn5tYWJX+FdiiMC5b51/oiKeN23Gtw0Pga Tphwp3lrEa3W8uML1uf8LM9GYZY6IxvNOaOgjPdXFl4v0gSJ7gSHyXZT16EWdMBWDNeY /QqU/ryzQiGTVBTZbRu5aH9w0wReX2aYshAKDhu9zOY1Cp7xZsUv4qs/DWQQl0+Sc3gu vjOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dsh8n8S+WjsLE7De1qEZaAtaPhu4TJnaTc3ZRgWQ1o4=; b=rcL86Wk4Z1Oqov1Uk5t4goXk3qQ5GaiM9+adDkSLDMipmTRXziE10IwkwYeWMZoq49 wKYmkd0xJM1xNxAAJd2qOTRIS0lU0ZF0I58pCAS5OHmOijUy2pket8JbaYRn2L+nhwZ9 AFyXNNKYZ8ZL78dTjbLSz2WRbIS0s3+z8yjzUhn4mivmjU7WJZNyHR0Y9piFwoN87TuT WNwkrcVo2XSGv0yutQLJeTwmDiTOqGRikHKASXkOcJn29A+lvyXghLPKd8t/oX0Jmxrp DsmbhISPweJ5uY/rJfCM1EywG1PQxApBsTYfsgqemKztXONzCvzp2gAvI9ibqks7O/rv 8MNw== X-Gm-Message-State: AOAM531Dk7OiHpfcqUWtrfZeNcjHnaLBqHtLxL7vTP4Sj/+R4Ndg4O+Z iTMm3Tiwqt/C0rq/o3HmfiN/EsDabriYJQ== X-Received: by 2002:a17:906:4788:: with SMTP id cw8mr35085452ejc.232.1641117003319; Sun, 02 Jan 2022 01:50:03 -0800 (PST) Received: from localhost.localdomain (83-83-48-81.cable.dynamic.v4.ziggo.nl. [83.83.48.81]) by smtp.gmail.com with ESMTPSA id gn15sm9679064ejc.184.2022.01.02.01.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 01:50:02 -0800 (PST) From: Diederick Niehorster To: ffmpeg-devel@ffmpeg.org Date: Sun, 2 Jan 2022 10:49:35 +0100 Message-Id: <20220102094940.1765-1-dcnieho@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 0/5] avdevice/dshow fixups X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Diederick Niehorster Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: NohKE7FmrOu6 These five patches fix two regressions (one crashing bug making dshow unusable on x86, and one regression introduced by my recent patches due to which devices that seem to not behave according to spec but worked fine before my patches could no longer be used. They furthermore fix three small issues i found looking through the dshow code: 2x needed cleanup not being done, and one where to skip setting format for a pin when its useless. new in v2 is fixing of the x86 crash Diederick Niehorster (5): avdevice/dshow: tv_tuner_audio_dialog cleanup missing avdevice/dshow: proper cleanup of queried media types avdevice/dshow: fix crash on x86 avdevice/dshow: only set pin format if wanted avdevice/dshow: ensure pin's default format is set libavdevice/dshow.c | 93 +++++++++++++--------- libavdevice/dshow_capture.h | 120 ++++++++++++++--------------- libavdevice/dshow_crossbar.c | 4 + libavdevice/dshow_enummediatypes.c | 8 +- libavdevice/dshow_enumpins.c | 8 +- libavdevice/dshow_filter.c | 24 +++--- libavdevice/dshow_pin.c | 48 ++++++------ 7 files changed, 165 insertions(+), 140 deletions(-)