[patches:#582] fix crash with filename argument and endless loop

Status: open
Group: bugfix
Labels: midifile
Created: Thu Jul 13, 2017 08:32 AM UTC by Antoine Villeret
Last Updated: Thu Jul 13, 2017 08:32 AM UTC
Owner: Martin Peach
Attachments:

here is a patch that fix 2 issues :
- first it move the creation of outets before file loading, this avoid a crash (because outet is used to send data at file loading).
But it would be better to defer file loading to the next tick to let Pd make connection or use loadbang method to read file in argument.
Currently if [midifile] is loaded with an argument, file info are send to right outlet but this is no connection already.

You can find git commit here : https://github.com/avilleret/mrpeach/commits/master


Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.