Ticket #4213: newhdhr.patch

File newhdhr.patch, 1.8 KB (added by Bill <cizek@…>, 14 years ago)

New patch for HDHomeRun

  • mythtv/libs/libmythtv/hdhrrecorder.cpp

    diff -r -u -X diff.exclude myth.14884.1117b/mythtv/libs/libmythtv/hdhrrecorder.cpp myth.14884.1117c/mythtv/libs/libmythtv/hdhrrecorder.cpp
     
    100100    }
    101101
    102102    /* Create TS socket. */
    103     _video_socket = hdhomerun_video_create(0, VIDEO_DATA_BUFFER_SIZE_1S);
     103    int buffersize = gContext->GetNumSetting("HDRingbufferSize", 50 * TSPacket::SIZE) * 1024;
     104    _video_socket = hdhomerun_video_create(0, buffersize);
    104105    if (!_video_socket)
    105106    {
    106107        VERBOSE(VB_IMPORTANT, LOC + "Open() failed to open socket");
    107108        return false;
    108109    }
    109110
     111    VERBOSE(VB_RECORD, QString(LOC + "Opened card with buffersize of %1").arg(buffersize));
    110112    /* Success. */
    111113    return true;
    112114}
     
    344344        size_t data_length;
    345345        unsigned char *data_buffer =
    346346            hdhomerun_video_recv(_video_socket,
    347                                  VIDEO_DATA_BUFFER_SIZE_1S / 5,
     347                                 VIDEO_DATA_PACKET_SIZE,
    348348                                 &data_length);
    349349        if (!data_buffer)
    350350        {
  • mythtv/libs/libmythtv/hdhrsignalmonitor.cpp

    diff -r -u -X diff.exclude myth.14884.1117b/mythtv/libs/libmythtv/hdhrsignalmonitor.cpp myth.14884.1117c/mythtv/libs/libmythtv/hdhrsignalmonitor.cpp
     
    167167        size_t data_length;
    168168        unsigned char *data_buffer =
    169169            hdhomerun_video_recv(_video_socket,
    170                                          VIDEO_DATA_BUFFER_SIZE_1S / 5,
     170                                         VIDEO_DATA_PACKET_SIZE,
    171171                                         &data_length);
    172172
    173173        if (data_buffer)