I would like to dedicate this patch to Mehmet Ali Shahin, who found this issue about 1.5 year ago, and actively participated to figure out this bug. The actual problem is that cherokee_handler_file_free does free all things around cherokee_handler_file but not the initial struct to store it. The function cherokee_handler_free calls the previous and frees the pointer. As you can see this happened in another location as well.
One could claim that having the ffmpeg file handle open while just streaming is wasteful. I agree.
Fix the ffmpeg deprecation warnings
Merge branch 'master' of http://github.com/cherokee/webserver