Fixed timeout problems in MistPlayer.

This commit is contained in:
Thulinma 2013-07-23 16:25:23 +02:00
parent a8382b3bef
commit 4d3a500e66

View file

@ -170,13 +170,13 @@ int main(int argc, char** argv){
case 's': { //second-seek case 's': { //second-seek
int ms = JSON::Value(in_out.Received().get().substr(2)).asInt(); int ms = JSON::Value(in_out.Received().get().substr(2)).asInt();
bool ret = source.seek_time(ms); bool ret = source.seek_time(ms);
lasttime = 0; lasttime = Util::epoch();
lastTime = 0; lastTime = 0;
break; break;
} }
case 'p': { //play case 'p': { //play
playing = -1; playing = -1;
lasttime = 0; lasttime = Util::epoch();
in_out.setBlocking(false); in_out.setBlocking(false);
if (in_out.Received().get().size() >= 2){ if (in_out.Received().get().size() >= 2){
playUntil = atoi(in_out.Received().get().substr(2).c_str()); playUntil = atoi(in_out.Received().get().substr(2).c_str());