Ticket #1275: pvr_reinit.patch

File pvr_reinit.patch, 585 bytes (added by derek@…, 20 years ago)

Reinit PVR card when select() call times out

  • libs/libmythtv/mpegrecorder.cpp

     
    481481                continue;
    482482            case 0:
    483483                printf("select timeout - ivtv driver has stopped responding\n");
     484                if(close(readfd) != 0)
     485                    perror("close");
     486                readfd = -1; // Force PVR card to be reopened on next iteration
    484487                continue;
    485488           default: break;
    486489        }