OSDN Git Service

LiveSession: added onSwitchDown
authorRobert Shih <robertshih@google.com>
Sat, 30 Aug 2014 01:02:56 +0000 (18:02 -0700)
committerRobert Shih <robertshih@google.com>
Thu, 11 Sep 2014 23:20:27 +0000 (16:20 -0700)
commit0ad776d2e4c6b4968d9dcd9bf34b962366b312a9
treef641c387fc9020e9f652a12b99d5dd164011936d
parent8962e08c4989368d2c821b64f42632b6f5fb016e
LiveSession: added onSwitchDown

additionally in this change
  - AnotherPacketSource: added getEstimatedDurationUs that avoids
    looping through buffered access units in most cases; this method
    is called by LiveSession before triggering onSwitchDown. Also fix
    the original getBufferedDurationUs to accumulate durations across
    discontinuities.

Bug: 13742612
Change-Id: I135932ea0c74671b7019a3c7054844926c18bc14
media/libstagefright/httplive/LiveSession.cpp
media/libstagefright/httplive/LiveSession.h
media/libstagefright/mpeg2ts/AnotherPacketSource.cpp
media/libstagefright/mpeg2ts/AnotherPacketSource.h