[FFmpeg-devel] [PATCH 6/9] avradio/sdrdemux: count timeout irrespective of a station being active
Michael Niedermayer
michael at niedermayer.cc
Fri Jul 7 20:22:21 EEST 2023
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavradio/sdrdemux.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index ad3e253ced..6cb9d3b70a 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -327,12 +327,11 @@ static void decay_stations(SDRContext *sdr)
if (station->frequency - station->bandwidth/2 < sdr->block_center_freq - sdr->bandwidth/2 ||
station->frequency + station->bandwidth/2 > sdr->block_center_freq + sdr->bandwidth/2)
continue;
- if (station->stream)
- continue;
if (station->in_station_list) {
if (station->timeout++ > STATION_TIMEOUT) {
- station->in_station_list = 0;
+ if (!station->stream)
+ station->in_station_list = 0;
}
} else {
if (station->timeout++ > CANDIDATE_STATION_TIMEOUT) {
--
2.31.1
More information about the ffmpeg-devel
mailing list