Changes between Initial Version and Version 4 of Ticket #10658


Ignore:
Timestamp:
07/24/12 18:41:56 (13 years ago)
Author:
danielk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10658

    • Property Owner set to danielk
    • Property Status newaccepted
    • Property Type Bug Report - GeneralDeveloper Task
    • Property Version UnspecifiedMaster Head
    • Property Milestone 0.260.27
    • Property Summary Rework AVFRingBuffer to return -EAGAIN when there is no dataAllow partial AVFRingBuffer reads
  • Ticket #10658 – Description

    initial v4  
    1 Traditionally we've always had RingBuffer::Read() return the number of bytes requested unless we are at the end of the file. But this blocks libav which expects this the read to complete fairly quickly even if it is a blocking read. Instead we should block for only a short time waiting for more data and then return what data we do have. To avoid premature exit from the decoder loop we also need to add EAGAIN returns so that if we don't have more data right now, but expect to have some in the near future we can signal this to libav.
     1Traditionally we've always had RingBuffer::Read() return the number of bytes requested unless we are at the end of the file. But this blocks libav which expects this the read to complete fairly quickly even if it is a blocking read. Instead we should block for only a short time waiting for more data and then return what data we do have as long as we have at least 1 byte of data.