c2-codecs: resend csd after flush

The framework assumes decoder keeps track of
the csd0 and csd1 for h264 frames and re-use
it after flush.

In addition, host decoder has to be recreated
for this to work.

This cl does the above operations.

Bug: 186770394
Bug: 186018470
Test:
atest android.media.cts.MediaCodecTest#testDecodeAfterFlush

Change-Id: I9972e91e9ca708f3f7ad569bda750c96064394d9
2 files changed