Fix crash when resizing after playback stops