Alternative fix for the previous change.

We need to drop the queued frames when the codec is reset too.