[mythtv] [PATCH] music scan opens too many files
Jim Radford
radford+myth at blackbean.org
Sun Sep 28 23:19:31 EDT 2003
Hi Isaac,
Without this patch I can't scan my flac collection without running out
of file descriptors.
-Jim
Index: flacdecoder.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythmusic/mythmusic/flacdecoder.cpp,v
retrieving revision 1.7
diff -u -u -r1.7 flacdecoder.cpp
--- flacdecoder.cpp 10 Sep 2003 00:21:45 -0000 1.7
+++ flacdecoder.cpp 29 Sep 2003 05:10:29 -0000
@@ -492,6 +492,8 @@
retdata->dumpToDatabase(db);
+ fclose(input);
+
return retdata;
}
@@ -566,6 +568,8 @@
FLAC__metadata_chain_delete(chain);
FLAC__metadata_iterator_delete(iterator);
+
+ fclose(input);
}
QString FlacDecoder::getComment(FLAC__StreamMetadata *block, const char *label)
More information about the mythtv-dev
mailing list