@@ -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);
@@ -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);
wanted_freq is 0 at this point Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavradio/sdrdemux.c | 4 ---- libavradio/sdrinradio.c | 3 --- 2 files changed, 7 deletions(-)