Add some TRACE statements to follow the opening and closing of media files.
Get the filesize directly from the iocache.
Implement ffmpeg mutex locking. Thanks Mehmetali and 264tnt for the patches\!