Revert "Revert "extmediaplayer: miscellaneous fix""

This reverts commit 8ef8b3ca70a9b34cf1fb05471e1095ccb8073f15.