From 2306377230caee715de737ba6edd68e8a878fa97 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 24 Jul 2024 16:21:52 +0200 Subject: Do not clear service list when ensemble stays the same --- src/FigParser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FigParser.cpp b/src/FigParser.cpp index bda2f83..4df4cb3 100644 --- a/src/FigParser.cpp +++ b/src/FigParser.cpp @@ -60,9 +60,14 @@ static bool checkCRC(const uint8_t *buf, size_t size) void FICDecoderObserver::FICChangeEnsemble(const FIC_ENSEMBLE& e) { + if (ensemble.has_value() and e.eid == ensemble->eid and e.ecc == ensemble->ecc) { + return; + } + services.clear(); ensemble = e; } + void FICDecoderObserver::FICChangeService(const LISTED_SERVICE& ls) { services[ls.sid] = ls; -- cgit v1.2.3