X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_ffmpeg%2Ftrgt_ffmpeg.cpp;h=5b5b2bc77b5b3cb12b0247d4cde18d5f6d800752;hb=4ba22fb51d97f1ecce04dcc5e40569a4354c1bae;hp=acda8ff62857e883cc1ec4c717ec29c50d2e1d32;hpb=22d5c8135bb2f41dca8f3ccd55f6cd70a007c12b;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp b/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp index acda8ff..5b5b2bc 100644 --- a/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp @@ -161,25 +161,25 @@ ffmpeg_trgt::init() command=strprintf("ffmpeg -f image2pipe -vcodec ppm -an -r %f -i pipe: -loop -hq -title \"%s\" -vcodec mpeg1video -y -- \"%s\"\n",desc.get_frame_rate(),get_canvas()->get_name().c_str(),filename.c_str()); else command=strprintf("ffmpeg -f image2pipe -vcodec ppm -an -r %f -i pipe: -loop -hq -title \"%s\" -vcodec mpeg1video -y \"%s\"\n",desc.get_frame_rate(),get_canvas()->get_name().c_str(),filename.c_str()); - + file=popen(command.c_str(),POPEN_BINARY_WRITE_TYPE); #elif defined(UNIX_PIPE_TO_PROCESSES) int p[2]; - + if (pipe(p)) { synfig::error(_("Unable to open pipe to ffmpeg")); return false; }; - + pid = fork(); - + if (pid == -1) { synfig::error(_("Unable to open pipe to ffmpeg")); return false; } - + if (pid == 0){ // Child process // Close pipeout, not needed