Fixed timeout problems in MistPlayer.
This commit is contained in:
parent
a8382b3bef
commit
4d3a500e66
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Reference in a new issue