avplay: Do not try to allocate new frames when the player is closing