Order of operations fix in th_movie.cpp

Fixes the test for CODEC_CAP_DELAY to know if we need to flush
buffered frames.
Merge pull request #259 from TheCycoONE/fix_cap_delay

Order of operations fix in th_movie.cpp