Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7709e783 authored by Robert Shih's avatar Robert Shih Committed by android-build-merger
Browse files

MediaExtractor: clarify EOS behavior for local files

am: e6b987c5

Change-Id: Idb83eec7f13fe555d4fec262561de5dc3ba22591
parents dd8b1df0 e6b987c5
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -496,6 +496,11 @@ final public class MediaExtractor {
    /**
    /**
     * Advance to the next sample. Returns false if no more sample data
     * Advance to the next sample. Returns false if no more sample data
     * is available (end of stream).
     * is available (end of stream).
     *
     * When extracting a local file, the behaviors of {@link #advance} and
     * {@link #readSampleData} are undefined in presence of concurrent
     * writes to the same local file; more specifically, end of stream
     * could be signalled earlier than expected.
     */
     */
    public native boolean advance();
    public native boolean advance();