fixup for websocket based outputs
This commit is contained in:
parent
2f6cc46f88
commit
bd238e367e
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue