I don’t see anything in the code given that should be causing a problem. This leads me to believe that it has to do with the values returned by the fields.
What type of fields are these and what are their return values?
video_file
video_id
video_file_m