I tested this a bit in mfplay context, and I don't think it's enough. I resent this patch with some additional fixes that make looping on MFP_EVENT_TYPE_PLAYBACK_ENDED event work for me (only tried wav -> sar path, evr has its own issues with restarting it seems).