Opened 4 years ago
Closed 4 years ago
Last modified 3 years ago
Mythmusic FLAC import fails with large number of files
|Reported by:||mayfields@…||Owned by:||Stuart Morgan <smorgan@…>|
|Component:||MythTV - General||Version:||0.25-fixes|
|Severity:||medium||Keywords:||mythmusic flac metadata|
When scanning for new music (eg when first installing), mythfrontend crashes when importing metadata for a large number of files. Error indicates too many open files. Incorrect data is also populated as metadata cannot be read for a number of files prior to crash.
In metaioflacvorbis.cpp, flacfile is not deleted after use in MetaIOFLACVorbis::read as it is in the other functions that open the file. This results in each file remaining opened after metadata is read.
Patch attached, tested against 0.25-fixes.
Change History (9)
Changed 4 years ago by anonymous
comment:1 Changed 4 years ago by Steven Adeff <adeffs.mythtv@…>
comment:2 Changed 4 years ago by Stuart Morgan <smorgan@…>
- Owner set to Stuart Morgan <smorgan@…>
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 4 years ago by Stuart Morgan <smorgan@…>
comment:4 Changed 4 years ago by stuartm
- Milestone changed from unknown to 0.25.1