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 3DBE3467BA for ; Tue, 18 Jul 2023 21:46:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 10B2468C5C7; Wed, 19 Jul 2023 00:46:07 +0300 (EEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3FD5A68C5D3 for ; Wed, 19 Jul 2023 00:46:04 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 96A6940006 for ; Tue, 18 Jul 2023 21:46:03 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 18 Jul 2023 23:45:37 +0200 Message-Id: <20230718214542.685375-9-michael@niedermayer.cc> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230718214542.685375-1-michael@niedermayer.cc> References: <20230718214542.685375-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 09/14] avradio/sdr: Remove code setting frequency from variable being 0 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: wanted_freq is 0 at this point Signed-off-by: Michael Niedermayer --- libavradio/sdrdemux.c | 4 ---- libavradio/sdrinradio.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c index b22d3fed13..b5e9b9ad04 100644 --- a/libavradio/sdrdemux.c +++ b/libavradio/sdrdemux.c @@ -1729,10 +1729,6 @@ static int sdrfile_initial_setup(AVFormatContext *s) //After reading the first packet header we return to the begin so the packet can be read whole avio_seek(s->pb, 0, SEEK_SET); - ret = ff_sdr_set_freq(sdr, sdr->wanted_freq); - if (ret < 0) - return ret; - sdr->read_callback = sdrfile_read_callback; return ff_sdr_common_init(s); diff --git a/libavradio/sdrinradio.c b/libavradio/sdrinradio.c index d569842a9c..d12b0b73fe 100644 --- a/libavradio/sdrinradio.c +++ b/libavradio/sdrinradio.c @@ -326,9 +326,6 @@ static int sdrindev_initial_hw_setup(AVFormatContext *s) av_log(s, AV_LOG_ERROR, "setSampleRate fail: %s\n", SoapySDRDevice_lastError()); return AVERROR_EXTERNAL; } - ret = ff_sdr_set_freq(sdr, sdr->wanted_freq); - if (ret < 0) - return ret; //List the available custom options for this specific driver to the user arg_info = SoapySDRDevice_getSettingInfo(soapy, &length); -- 2.31.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".