Ticket #1397: fwbuffer.diff

File fwbuffer.diff, 1.1 KB (added by jwestfall@…, 15 years ago)
  • libs/libmythtv/firewirerecorder.cpp

     
    126126         return false;
    127127     }
    128128     
     129     // set buffer size
     130     size_t buffer_size = gContext->GetNumSetting("HDRingbufferSize",
     131                            50 * TSPacket::SIZE) * 1024;
     132     iec61883_mpeg2_set_buffers(fwmpeg, buffer_size / 2048);
     133     VERBOSE(VB_IMPORTANT, QString("Firewire: buffer size %1 KB")
     134             .arg(buffer_size/1024));
     135
    129136     // set speed if needed
    130137     // probably shouldnt even allow user to set, 100Mbps should be more the enough
    131138     int curspeed = iec61883_mpeg2_get_speed(fwmpeg);
     
    225232            return;
    226233       }
    227234    }       
     235   
     236    iec61883_mpeg2_recv_stop(fwmpeg);
     237    VERBOSE(VB_IMPORTANT, QString("Firewire: total dropped packets %1")
     238        .arg(iec61883_mpeg2_get_dropped(fwmpeg)));
    228239
    229     iec61883_mpeg2_recv_stop(fwmpeg);
    230240    FinishRecording();
    231241    _recording = false;
    232242