libstagefright: support media-legacy usage

Change-Id: Ibcac0333ed4f79d71b38c26eba8cc665f2532cd0
libmediaplayerservice: fix for media-legacy usage

Change-Id: Idc6b0d9e976ece23d73ef81cebf72c4e6905647a
Merge changes Idc6b0d9e,Ibcac0333 into jb4.3

* changes:
  libmediaplayerservice: fix for media-legacy usage
  libstagefright: support media-legacy usage