media: wrong if statement