Fixed a crash in emit_video_changed