Don't ignore target init() failures, causes mod_libavcodec to crash synfig
[synfig.git] / synfig-core / trunk / src / synfig / target_scanline.cpp
index fe5f2a5..0d04c1c 100644 (file)
@@ -124,7 +124,10 @@ synfig::Target_Scanline::render(ProgressCallback *cb)
        assert(canvas);
        curr_frame_=0;
 
-       init();
+       if( !init() ){
+               if(cb) cb->error(_("Target initialisation failure"));
+               return false;
+       }
        
        // If the description's end frame is equal to
        // the start frame, then it is assumed that we