X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmptr_mplayer%2Fmptr_mplayer.cpp;h=4f796a435c757cb50e1c6263519006df32130ab3;hb=28f28705612902c15cd0702cc891fba35bf2d2df;hp=d1c6fb457a5b48b80e4cbb023a241785a43e27cf;hpb=16b3beced25134bef064705568ecb893a6be4e79;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mptr_mplayer/mptr_mplayer.cpp b/synfig-core/trunk/src/modules/mptr_mplayer/mptr_mplayer.cpp index d1c6fb4..4f796a4 100644 --- a/synfig-core/trunk/src/modules/mptr_mplayer/mptr_mplayer.cpp +++ b/synfig-core/trunk/src/modules/mptr_mplayer/mptr_mplayer.cpp @@ -1,5 +1,5 @@ /*! ======================================================================== -** Sinfg +** Synfig ** ppm Target Module ** $Id: mptr_mplayer.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ ** @@ -27,7 +27,7 @@ # include #endif -#include +#include #include #include "mptr_mplayer.h" #include @@ -39,7 +39,7 @@ /* === M A C R O S ========================================================= */ -using namespace sinfg; +using namespace synfig; using namespace std; using namespace etl; @@ -66,11 +66,11 @@ mplayer_mptr::~mplayer_mptr() } bool -mplayer_mptr::GetFrame(Time time, sinfg::Surface &surface, sinfg::ProgressCallback *) +mplayer_mptr::GetFrame(Time time, synfig::Surface &surface, synfig::ProgressCallback *) { int ret; ret=system( - strprintf("/usr/local/bin/mencoder \"%s\" -ovc rawrgb -ss %f -endpos 0 -nosound -o /tmp/tmp.sinfg.rgbdata | grep \"VIDEO\" > /tmp/tmp.sinfg.size", + strprintf("/usr/local/bin/mencoder \"%s\" -ovc rawrgb -ss %f -endpos 0 -nosound -o /tmp/tmp.synfig.rgbdata | grep \"VIDEO\" > /tmp/tmp.synfig.size", filename.c_str(), time ).c_str() @@ -82,16 +82,16 @@ mplayer_mptr::GetFrame(Time time, sinfg::Surface &surface, sinfg::ProgressCallba return false; } */ - FILE *sizefile=fopen("/tmp/tmp.sinfg.size","rt"); - FILE *rgbfile=fopen("/tmp/tmp.sinfg.rgbdata","rb"); + FILE *sizefile=fopen("/tmp/tmp.synfig.size","rt"); + FILE *rgbfile=fopen("/tmp/tmp.synfig.rgbdata","rb"); if(!rgbfile) { - cerr<<"unable to open /tmp/tmp.sinfg.rgbdata"<