**
** \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
#if defined(WIN32_PIPE_TO_PROCESSES)
string command;
-
+
if(wide_aspect)
command=strprintf("encodedv -w 1 - > \"%s\"\n",filename.c_str());
else
#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
synfig::error(_("Unable to open pipe to encodedv"));
return false;
}
-
+
if(wide_aspect)
execlp("encodedv", "encodedv", "-w", "1", "-", (const char *)NULL);
else