Ticket #11402: mythplayer.patch
File mythplayer.patch, 1.2 KB (added by , 10 years ago) |
---|
-
.cpp
old new 928 928 int testreadsize = 2048; 929 929 930 930 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; 932 934 while (testreadsize <= kDecoderProbeBufferSize) 933 935 { 934 936 MythTimer peekTimer; peekTimer.start(); 935 937 while (player_ctx->buffer->Peek(testbuf, testreadsize) != testreadsize) 936 938 { 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) 938 942 { 939 943 LOG(VB_GENERAL, LOG_ERR, LOC + 940 944 QString("OpenFile(): Could not read first %1 bytes of '%2'")