• strobe@google.com's avatar
    Fix sourceAbort() for BMFF streams. · add0ea33
    strobe@google.com authored
    MP4StreamParser::Flush() (called eventually by sourceAbort()) did not reset the
    parser state, and so would only work if the call happened to come when the
    parser was already in a particular state (which happened to always be true for
    the browser test harness it was originally tested with).
    
    Additionally, the format-specific buffer conversion methods did not cause
    an error to be propagated to the caller on failure, resulting in unexpected
    success for the added test.
    
    BUG=
    TEST=MP4StreamParserTest.TestFlush
    
    
    Review URL: https://chromiumcodereview.appspot.com/10843044
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149730 0039d316-1c4b-4281-b951-d872f2087c98
    add0ea33
mp4_stream_parser_unittest.cc 5.49 KB