• Glenn Kasten's avatar
    Bug 5238515 AndroidBufferQueue miscellaneous · 682f9be9
    Glenn Kasten authored
    AndroidBufferQueue:
     - errors found by setItems are now hard errors, and cause Enqueue to
       return an error result (e.g. PARAMETER_INVALID or PRECONDITIONS_VIOLATED)
     - disallow EOS with non-zero data
     - disallow Enqueue after EOS
     - Enqueue checks MPEG-2 sync byte of first packet to reduce chance of downstream failures
     - use MPEG-2 terminology "packet" instead of "block"
     - Clear and init don't need to erase buffer content, as it is inaccessible
     - put placeholder in IAndroidBufferQueue_SetCallbackEventsMask
       for additional events beyond SL_ANDROIDBUFFERQUEUEEVENT_PROCESSED
     - comment unused field mBufferState in AdvancedBufferHeader
     - fix a minor typo
     - add dump method, #if 0 out by default
    
    Change-Id: I11921e3784bfdb30e2cebaa1dabb705ea5ab0b92
    682f9be9
itfstruct.h 19.4 KB