Signed-off-by: Michael Niedermayer <[email protected]>
---
libavradio/sdrdemux.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index 2103feaca8..fea4202709 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -216,7 +216,8 @@ static int create_station(SDRContext *sdr, Station
*candidate_station) {
}
}
if (best_station) {
- if (score > best_station->score && conflict == INT_MAX) {
+ if (score > best_station->score && conflict == INT_MAX &&
+ candidate_station->timeout < best_station->timeout) {
int log_level = fabs(best_station->frequency - freq) < 3.0 ?
AV_LOG_DEBUG : AV_LOG_WARNING;
av_log(sdr->avfmt, log_level, "Update station score:%f -> %f freq:
%f %f -> %f\n",
best_station->score, score,
--
2.31.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".