mm-video: vdec: Fix race condition in flush.

Idle complete should be generated only after both input and
output ports are flushed. Component was generating Idle complete
before input port was flushed causing a crash while stopping
playback. This changes makes sure that Idle complete is generated
after both ports are flushed.

Change-Id: Ide8f3114463ff979504c1f2971f41c9691ab1e23
1 file changed