DO NOT MERGE TO MR2
There is a crash due to OMX_UseBuffer change.
In Reset(), media input node deletes the media input node port,
which deletes the allocator. When encoder node releases the
media data, it calls the allocator to release the memory.
That causes crash.

Cherry-picked from MR2 branch.

commit af748e6c031c733e2737a7ea4affbc082e92dca2
Author: Jianhong Jiang <jianhong@google.com>
Date:   Fri Oct 23 14:41:57 2009 -0700

    RIO-7762: OMX_UseBuffer support buffers allocated in MIO.
    The change depends on
         https://android-git.corp.google.com/g/30984
3 files changed