From 053bda3d928b82ac21c6aac1b30703999878ee5f Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Fri, 14 Mar 2014 17:57:48 -0700 Subject: [PATCH] Fixed LDS playback --- Plugins/MIDI/MIDI/MIDIContainer.mm | 2 +- Plugins/MIDI/MIDI/MIDIDecoder.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/MIDI/MIDI/MIDIContainer.mm b/Plugins/MIDI/MIDI/MIDIContainer.mm index 8fb13f473..da64072db 100755 --- a/Plugins/MIDI/MIDI/MIDIContainer.mm +++ b/Plugins/MIDI/MIDI/MIDIContainer.mm @@ -50,7 +50,7 @@ midi_container midi_file; - if ( !midi_processor::process_file( data, [[[url absoluteString] pathExtension] UTF8String], midi_file) ) + if ( !midi_processor::process_file( data, [[url pathExtension] UTF8String], midi_file) ) return 0; long track_count = midi_file.get_subsong_count(); diff --git a/Plugins/MIDI/MIDI/MIDIDecoder.mm b/Plugins/MIDI/MIDI/MIDIDecoder.mm index bebe191d3..f416fd49a 100755 --- a/Plugins/MIDI/MIDI/MIDIDecoder.mm +++ b/Plugins/MIDI/MIDI/MIDIDecoder.mm @@ -45,7 +45,7 @@ file_data.resize( size ); [s read:&file_data[0] amount:size]; - if ( !midi_processor::process_file(file_data, [[[[s url] absoluteString] lastPathComponent] UTF8String], midi_file) ) + if ( !midi_processor::process_file(file_data, [[[s url] pathExtension] UTF8String], midi_file) ) return NO; int track_num = [[[s url] fragment] intValue]; //What if theres no fragment? Assuming we get 0.