Fix segfault when using multipass encoding for video,
something still goes wrong when plugin audio in this scenario