Bugfix: Don't stop the muxer before all packet queues are empty.