Fix crash on video change on linux