# HG changeset patch # User michael # Date 1139678257 0 # Node ID 5e15da09cd6b5d66df03fb1a73064f4f124dd1dc # Parent 53c4a89c1a82a429fbdbc9e59bfc72c26e2a073b Fix for url_fclose() being called on an already closed file based on a patch by ( hitman codehq org) diff -r 53c4a89c1a82 -r 5e15da09cd6b utils.c --- a/utils.c Sat Feb 11 09:27:00 2006 +0000 +++ b/utils.c Sat Feb 11 17:17:37 2006 +0000 @@ -569,6 +569,7 @@ if (url_fseek(pb, 0, SEEK_SET) == (offset_t)-EPIPE) { url_fclose(pb); if (url_fopen(pb, filename, URL_RDONLY) < 0) { + file_opened = 0; err = AVERROR_IO; goto fail; }