From ecec60219575d1b6e25c1f6e7c58d4c27fda2fa7 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Fri, 24 Aug 2007 10:15:25 +0200 Subject: [PATCH] transconv() keeps trying converters until system() returns 0 (Closes: #1141). --- TODO | 5 +++-- VERSION | 2 +- support.c | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index b862c78..df3d624 100644 --- a/TODO +++ b/TODO @@ -71,8 +71,6 @@ Pending Enhancements * 1138: Use ffmpeg as a fallback for audio file conversions (needs #1141 closed). * 1139: Add a lilypond converter. - * 1141: Change transconv() to look to the system() call return code and - keep trying until a successful command is executed. Closed ------ @@ -347,5 +345,8 @@ Closed for each note (Mon, 19 Mar 2007 08:32:02 +0100). * 1140: Document the pipe in wav commands (Fri, 17 Aug 2007 14:24:35 +0200). + * 1141: Change transconv() to look to the system() call return code and + keep trying until a successful command is executed + (Fri, 24 Aug 2007 10:14:10 +0200). Email bugs to angel@triptico.com diff --git a/VERSION b/VERSION index aeec3b8..44b71c5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -#define VERSION "1.0.10" +#define VERSION "1.0.11-dev" diff --git a/support.c b/support.c index 04932e4..9fea9a5 100644 --- a/support.c +++ b/support.c @@ -327,10 +327,10 @@ char * transconv(char * file, char * ext, char * dir) tmp[sizeof(tmp) - 1] = '\0'; if(verbose >= 2) - printf("Converting: %s\n", tmp); + printf("Executing: %s\n", tmp); - system(tmp); - break; + if (system(tmp) == 0) + break; } } -- 2.11.4.GIT