mediacodec: wait to have the first frame successfully decoded to set the started flag

This is an attempt to fix a common crash in closeDecoder() we did not manage to reproduce with our devices.