diff --git a/ChangeLog b/ChangeLog index 22f328675..75146a849 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,15 @@ -2008-09-08 Paul Giblock +2008-09-17 Tobias Doerffel + + * plugins/sf2_player/sf2_player.cpp: + try to use relative paths for s_fonts map too as otherwise + s_fonts.remove( m_filename ) won't do anything if a full path was + inserted and m_filename was made relative - fixes crash when + re-opening a soundfont which was shared before + + * plugins/midi_import/portsmf/strparse.cpp: + fixed compilation issue + +2008-09-16 Paul Giblock * plugins/sf2_player/sf2_player.cpp: * plugins/sf2_player/sf2_player.h: diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index f0143091b..34db23800 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -295,7 +295,7 @@ void sf2Instrument::freeFont( void ) { cout << "Really deleting " << m_filename << endl; - sf2Instrument::s_fonts.remove( m_filename ); + printf("%d\n", sf2Instrument::s_fonts.remove( m_filename ) ); fluid_synth_sfunload( m_synth, m_fontId, TRUE ); delete m_font; @@ -352,7 +352,7 @@ void sf2Instrument::openFile( const QString & _sf2File ) { // Grab this sf from the top of the stack and add to list m_font = new sf2Font( fluid_synth_get_sfont( m_synth, 0 ) ); - s_fonts.insert( _sf2File, m_font ); + s_fonts.insert( sampleBuffer::tryToMakeRelative( _sf2File ), m_font ); } else {