[mythtv-commits] Ticket #10778: getTagger holds file open after use

MythTV noreply at mythtv.org
Wed May 30 05:28:17 UTC 2012

#10778: getTagger holds file open after use
 Reporter:  mayfields@…  |           Type:  Bug Report - General
   Status:  new          |       Priority:  minor
Milestone:  unknown      |      Component:  Plugin - MythMusic
  Version:  0.25-fixes   |       Severity:  low
 Keywords:               |  Ticket locked:  0
 When performing a music scan, last file scanned is kept open even after
 applying the various fixes from 10766.

 When the portion of AddFileToDB which deals with embedded images is
 commented out, the file is no longer held open. The specific offending
 call is
 MetaIO *tagger = data->getTagger();
 If the lines after this are commented out, the issue still exists. If this
 one additional line is commented out, the file is no longer held open
 after the scan.

 The tagger as defined within getTagger is a static MetaIO type eg
 static MetaIOID3 metaIOID3;

 I have only seen this particular behaviour with the ID3 tagger which holds
 the current file open until the next is read. I am unable to determine a
 mechanism to force the file closed. File is only closed upon mythfrontend

 I have not confirmed whether this issue exists where other calls to
 getTagger are made.

Ticket URL: <http://code.mythtv.org/trac/ticket/10778>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center

More information about the mythtv-commits mailing list