libstagefright: support media-legacy usage

Change-Id: Ibcac0333ed4f79d71b38c26eba8cc665f2532cd0
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2