Fix the flushing process of DecryptingAudioDecoder.
commit5c5e9b7be21a0d52a56e2f398ce9648b5a4e535c
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 17 Jun 2014 19:21:12 +0000 (17 19:21 +0000)
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 17 Jun 2014 19:21:12 +0000 (17 19:21 +0000)
tree92d1b11d574a61e38e42d26a0f101454695e328b
parent8e2da10680181399b706e1b40256dbc7698d3b63
Fix the flushing process of DecryptingAudioDecoder.

This is the audio part of r277270.

When Decode(EOS) is called on DecryptingAudioDecoder, the decoder should keep
flushing the decryptor with EOS input until NeedMoreData() is returned. Then the
decoder can return the DecodeCB.

BUG=338529
TEST=Fix unittest to cover this case.

Review URL: https://codereview.chromium.org/332253002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277836 0039d316-1c4b-4281-b951-d872f2087c98
media/filters/decrypting_audio_decoder.cc
media/filters/decrypting_audio_decoder_unittest.cc
media/filters/decrypting_video_decoder.cc
media/filters/decrypting_video_decoder_unittest.cc