From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id A3C9A42B30 for ; Wed, 13 Apr 2022 16:15:46 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 196FE68B41F; Wed, 13 Apr 2022 19:15:44 +0300 (EEST) Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8395268B279 for ; Wed, 13 Apr 2022 19:15:38 +0300 (EEST) Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-d6ca46da48so2468075fac.12 for ; Wed, 13 Apr 2022 09:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=oH7AKJ0AJtgbxax6QYOd1IwLD9kvBOadlRuCgxyC3YA=; b=Rkq1/F0kok8AlW+FUzSS2+2/taD25LSN71aJGN1qYMZZldjG9R2caybU+axg6INDiE fY/VagmnGvGXAVJp42ki45QlrfkQz9IBUhR4MhSil2EykizOt2ilikEJrf7maGsIbYx6 RL8U8GUHi8f4dOeEbdrDKmt1ngC/fKXvlvQ/hse+dMnWTyqfwzwLWrCxKmiWfw3cW/UO epCLiI0fule+iqarzNMecxaOCBSlLiU351B6xhh6K9S/7ibBw5du8SKMtWH99Z7/7rk9 ZSIT6Q39FMMLS9l4ObbTxz4lC7NFHuXdjvGt1f6GPjVaWjow00CfxuqZDO/ulVwOlngq QqFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=oH7AKJ0AJtgbxax6QYOd1IwLD9kvBOadlRuCgxyC3YA=; b=7o4UKi7IlPiBj7Q7AdC9XGao3WRkVcVEImzMhQyjl8ebq1cwxvr4IBpRgw12J0rKXh CRiDIUyOeSxdNRYnhAG8DlitoV79q9CXvb5RvHBYHODxSZqgwGjluGDZHamRA33DvD6k lsdEV368H62D0SH6ZPVtp2H8yhNF18LpwHKtD2R+xvVvpP+VvGsvyUp/Xj44IOeWajsm l/Snwlyw7J0I29pGncnOndwI5QPH6FRHoDFICpxNeN2bffG02BiLRAYl64ZEOcSK2XuU XrpwbKn637xKvO7UauCBAPh1/nCw8gbJ17CQDC1WFVHthjKytfZZljwrVnRs4E1BDSdC 5c1Q== X-Gm-Message-State: AOAM532eX8C99xdvVYUTuDFglNMqzRLIFzKl0AMC0XXtbPTkcglt0LzH f3L3EoJ1ms8wP4pzZGLWU9p90d0hZME= X-Google-Smtp-Source: ABdhPJyjAWsMH7BbKDDIbeyirrDH932qf1BkEP7e1faDojARy5nigijIfAV9amCEeoEFx6g1zsYZHg== X-Received: by 2002:a05:6871:687:b0:e2:cc84:b7de with SMTP id l7-20020a056871068700b000e2cc84b7demr4553286oao.66.1649866536686; Wed, 13 Apr 2022 09:15:36 -0700 (PDT) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id 60-20020a9d0c42000000b005e9339b4627sm965696otr.24.2022.04.13.09.15.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 09:15:36 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Apr 2022 13:15:14 -0300 Message-Id: <20220413161515.6999-1-jamrial@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] avdevice/dshow: remove unused variables 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Remnant from f125c504d8fece6420bb97767f9e72414c26312a Signed-off-by: James Almer --- libavdevice/dshow.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 1e69620880..ac8b64366f 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -814,10 +814,6 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype, / ctx->requested_framerate.num : 0; int requested_width = ctx->requested_width; int requested_height = ctx->requested_height; - // audio - int requested_sample_rate = ctx->sample_rate; - int requested_sample_size = ctx->sample_size; - int requested_channels = ctx->channels; if (IPin_QueryInterface(pin, &IID_IAMStreamConfig, (void **) &config) != S_OK) return; @@ -854,10 +850,6 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype, requested_framerate = fmt_info->framerate; requested_width = fmt_info->width; requested_height = fmt_info->height; - } else { - requested_sample_rate = fmt_info->sample_rate; - requested_sample_size = fmt_info->sample_size; - requested_channels = fmt_info->channels; } av_free(fmt_info); // free but don't set to NULL to enable below check } -- 2.35.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".