Ticket #10522: bdringbuffer_cpp.patch

File bdringbuffer_cpp.patch, 959 bytes (added by Gary Buhrmaster <gary.buhrmaster@…>, 8 years ago)
  • mythtv/libs/libmythtv/bdringbuffer.cpp

    diff --git a/mythtv/libs/libmythtv/bdringbuffer.cpp b/mythtv/libs/libmythtv/bdringbuffer.cpp
    index 19912e1..256cf36 100644
    a b uint32_t BDRingBuffer::GetCurrentChapter(void) 
    499499
    500500uint64_t BDRingBuffer::GetChapterStartTime(uint32_t chapter)
    501501{
    502     if (chapter < 0 || chapter >= GetNumChapters())
     502    if (chapter >= GetNumChapters())
    503503        return 0;
    504504    QMutexLocker locker(&m_infoLock);
    505505    return (uint64_t)((long double)m_currentTitleInfo->chapters[chapter].start /
    uint64_t BDRingBuffer::GetChapterStartTime(uint32_t chapter) 
    508508
    509509uint64_t BDRingBuffer::GetChapterStartFrame(uint32_t chapter)
    510510{
    511     if (chapter < 0 || chapter >= GetNumChapters())
     511    if (chapter >= GetNumChapters())
    512512        return 0;
    513513    QMutexLocker locker(&m_infoLock);
    514514    return (uint64_t)((long double)(m_currentTitleInfo->chapters[chapter].start *