Inverted logic for video streaming was causing video streams without output files to fail to terminate