Ticket #1870: tv_play.cpp.2.patch

File tv_play.cpp.2.patch, 733 bytes (added by klaas.de.waal@…, 15 years ago)
  • tv_play.cpp

     
    10911091    SetupPlayer(isWatchingRecording);
    10921092    pthread_create(&decode, NULL, SpawnDecode, nvp);
    10931093
    1094     maxWait = (maxWait <= 0) ? 20000 : maxWait;
     1094    maxWait = (maxWait <= 0) ? 40000 : maxWait;
    10951095#ifdef USING_VALGRIND
    10961096    maxWait = (1<<30);
    10971097#endif // USING_VALGRIND
     
    10991099    t.start();
    11001100    while (!nvp->IsPlaying() && nvp->IsDecoderThreadAlive() &&
    11011101           (t.elapsed() < maxWait))
    1102         usleep(50);
     1102        usleep(50000);
    11031103
    11041104    VERBOSE(VB_PLAYBACK, LOC + "StartPlayer(): took "<<t.elapsed()
    11051105            <<" ms to start player.");