gap-dev-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gap-dev-discuss] Fixing Cynthiune Timidity Bundle


From: Philippe Roussel
Subject: Re: [Gap-dev-discuss] Fixing Cynthiune Timidity Bundle
Date: Mon, 14 May 2012 10:04:34 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi,

Le 13/05/2012 20:56, Riccardo Mottola a écrit :
> Hi,
> 
> I don't know how to handle the executable stuff, but your buffer patch
> seems sane, thus commit it!

This simple patch is enough to keep Cynthiune alive when adding .mid
files without Timidity.

It also shows that the code could be improved : when adding one .mid
file to the playlist, the error message appears *8* times...

Thanks,
Philippe


RCS file: /sources/gap/gap/user-apps/Cynthiune/Bundles/Timidity/Timidity.m,v
retrieving revision 1.4
diff -u -r1.4 Timidity.m
--- Bundles/Timidity/Timidity.m 13 May 2012 16:56:42 -0000      1.4
+++ Bundles/Timidity/Timidity.m 14 May 2012 08:02:28 -0000
@@ -135,7 +135,16 @@
   in = [tiPipe fileHandleForReading];
   err = [stderrPipe fileHandleForReading];

-  [tiTask launch];
+
+  NS_DURING
+    {
+      [tiTask launch];
+    }
+  NS_HANDLER
+    {
+      NSLog(@"Error while lauching task '%@'", [tiTask launchPath]);
+    }
+  NS_ENDHANDLER

   if ([tiTask isRunning])
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]