X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_dv%2Ftrgt_dv.cpp;h=13fed5c844d4a9a79c5de67d745c4f753c0b9717;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=f215f64d2169de2a3ef42e2f68725b34231c5510;hpb=d04c74c8f5a45493895afdaba9b39772401fbf39;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_dv/trgt_dv.cpp b/synfig-core/trunk/src/modules/mod_dv/trgt_dv.cpp index f215f64..13fed5c 100644 --- a/synfig-core/trunk/src/modules/mod_dv/trgt_dv.cpp +++ b/synfig-core/trunk/src/modules/mod_dv/trgt_dv.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -151,7 +152,7 @@ dv_trgt::init() #if defined(WIN32_PIPE_TO_PROCESSES) string command; - + if(wide_aspect) command=strprintf("encodedv -w 1 - > \"%s\"\n",filename.c_str()); else @@ -169,19 +170,19 @@ dv_trgt::init() #elif defined(UNIX_PIPE_TO_PROCESSES) int p[2]; - + if (pipe(p)) { synfig::error(_("Unable to open pipe to encodedv")); return false; }; - + pid_t pid = fork(); - + if (pid == -1) { synfig::error(_("Unable to open pipe to encodedv")); return false; } - + if (pid == 0){ // Child process // Close pipeout, not needed @@ -208,7 +209,7 @@ dv_trgt::init() synfig::error(_("Unable to open pipe to encodedv")); return false; } - + if(wide_aspect) execlp("encodedv", "encodedv", "-w", "1", "-", (const char *)NULL); else