Ticket #6612: TVRec_fix_switching_buffer_race.diff

File TVRec_fix_switching_buffer_race.diff, 738 bytes (added by Shane Shrybman, 11 years ago)

Fix race causing short 1-2 second files in LiveTV

  • mythtv/libs/libmythtv/tv_rec.cpp

    void TVRec::RingBufferChanged(RingBuffer *rb, ProgramInfo *pginfo) 
    33723372{
    33733373    VERBOSE(VB_IMPORTANT, LOC + "RingBufferChanged()");
    33743374
    3375     SetRingBuffer(rb);
    3376 
    33773375    if (pginfo)
    33783376    {
    33793377        if (curRecording)
    void TVRec::RingBufferChanged(RingBuffer *rb, ProgramInfo *pginfo) 
    33853383        curRecording = new ProgramInfo(*pginfo);
    33863384        curRecording->MarkAsInUse(true, "recorder");
    33873385    }
     3386
     3387    SetRingBuffer(rb);
    33883388}
    33893389
    33903390QString TVRec::TuningGetChanNum(const TuningRequest &request,