From bd238e367e6d7ea370cd65b667c86e9124dfc855 Mon Sep 17 00:00:00 2001 From: Balder Date: Thu, 15 Feb 2024 14:47:30 +0100 Subject: [PATCH] fixup for websocket based outputs --- src/output/output_http.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/output/output_http.cpp b/src/output/output_http.cpp index 054defd5..4b3d3812 100644 --- a/src/output/output_http.cpp +++ b/src/output/output_http.cpp @@ -574,17 +574,14 @@ namespace Mist{ //Play command, sets pause state off and optionally also seeks if (command["type"] == "play") { + bool wasPlaying = parseData; parseData = true; if (command.isMember("seek_time")){ handleWebsocketSeek(command); }else{ - if (!currentTime()){ + if (!wasPlaying){ command["seek_time"] = 0; handleWebsocketSeek(command); - }else{ - parseData = true; - selectDefaultTracks(); - firstTime = Util::bootMS() - (lastPacketTime / target_rate); } } return true;