From dbe58bf7a2d1b53c953eef68cf5b31877fd5b1c8 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 22 Jul 2024 12:27:48 +0200 Subject: [PATCH] Ensure DTSC pushes reselect tracks when idle as well --- src/output/output_dtsc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/output/output_dtsc.cpp b/src/output/output_dtsc.cpp index 9f696c41..3c2e9662 100644 --- a/src/output/output_dtsc.cpp +++ b/src/output/output_dtsc.cpp @@ -173,6 +173,12 @@ namespace Mist{ HIGH_MSG("Received DTCM: %s", dScan.asJSON().toString().c_str()); if (dScan.getMember("cmd").asString() == "ok"){ INFO_MSG("Remote OK: %s", dScan.getMember("msg").asString().c_str()); + if (dScan.getMember("msg").asString() == "pong"){ + if (selectDefaultTracks()){ + INFO_MSG("Track selection changed while idle - resending headers"); + sentHeader = false; + } + } continue; } if (dScan.getMember("cmd").asString() == "push"){