Ticket #11402: mythplayer.patch

File mythplayer.patch, 1.2 KB (added by webe3vt@…, 6 years ago)
  • .cpp

    old new  
    928928    int testreadsize = 2048;
    929929
    930930    MythTimer bigTimer; bigTimer.start();
    931     int timeout = (retries + 1) * 500;
     931    //Set to 600 from 500 in order to make analog and composite inputs work on Hauppauge 2250 card and older hardware.
     932    //This makes the code work for ticket #11402, https://code.mythtv.org/trac/ticket/11402
     933    int timeout = (retries + 1) * 600;
    932934    while (testreadsize <= kDecoderProbeBufferSize)
    933935    {
    934936        MythTimer peekTimer; peekTimer.start();
    935937        while (player_ctx->buffer->Peek(testbuf, testreadsize) != testreadsize)
    936938        {
    937             if (peekTimer.elapsed() > 1000 || bigTimer.elapsed() > timeout)
     939            //Set to 1500 from 1000 in order to make analog and composite inputs work on Hauppauge 2250 card and older hardware.
     940            //This makes the code work for ticket #11402, https://code.mythtv.org/trac/ticket/11402
     941            if (peekTimer.elapsed() > 1500 || bigTimer.elapsed() > timeout)
    938942            {
    939943                LOG(VB_GENERAL, LOG_ERR, LOC +
    940944                    QString("OpenFile(): Could not read first %1 bytes of '%2'")