Fix 1818856: External application render targets seem to be broken. We can't use...
[synfig.git] / synfig-core / trunk / src / modules / mod_dv / trgt_dv.cpp
index e2ec32a..18dc1cd 100644 (file)
@@ -128,7 +128,7 @@ dv_trgt::init()
                command=strprintf("encodedv - > \"%s\"\n",filename.c_str());
 
        // Open the pipe to encodedv
-       file=popen(command.c_str(),"w");
+       file=popen(command.c_str(),POPEN_BINARY_WRITE_TYPE);
 
        if(!file)
        {
@@ -151,7 +151,7 @@ dv_trgt::end_frame()
 }
 
 bool
-dv_trgt::start_frame(synfig::ProgressCallback *callback)
+dv_trgt::start_frame(synfig::ProgressCallback */*callback*/)
 {
        int w=desc.get_w(),h=desc.get_h();
 
@@ -172,7 +172,7 @@ dv_trgt::start_frame(synfig::ProgressCallback *callback)
 }
 
 Color *
-dv_trgt::start_scanline(int scanline)
+dv_trgt::start_scanline(int /*scanline*/)
 {
        return color_buffer;
 }