Ticket #11729: test.patch

File test.patch, 930 bytes (added by JYA, 7 years ago)

attempted fix

  • mythtv/libs/libmyth/audio/audiooutputbase.cpp

    diff --git a/mythtv/libs/libmyth/audio/audiooutputbase.cpp b/mythtv/libs/libmyth/audio/audiooutputbase.cpp
    index c2d47f2..0f21cb1 100644
    a b bool AudioOutputBase::AddData(void *in_buffer, int in_len, 
    14851485        /* we want the timecode of the last sample added but we are given the
    14861486           timecode of the first - add the time in ms that the frames added
    14871487           represent */
     1488        frames_final += frames;
    14881489
    14891490        // Copy samples into audiobuffer, with upmix if necessary
    14901491        if ((len = CopyWithUpmix((char *)buffer, frames, org_waud)) <= 0)
    bool AudioOutputBase::AddData(void *in_buffer, int in_len, 
    14931494        }
    14941495
    14951496        frames = len / bpf;
    1496         frames_final += frames;
    14971497
    14981498        bdiff = kAudioRingBufferSize - waud;
    14991499        if ((len % bpf) != 0 && bdiff < len)