X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fsvg%2Fsvg.C;h=89499d15c7bb9c4d5ae5c6308ba29f8248467125;hb=74afbc29ac4ce9d94d53e10342979f2c59f1f193;hp=842161aef515a863ec2597a2c5b5ec324373c2d6;hpb=77815ec03df6a03ed75433e8cf8ae1e83fb76d6e;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/svg/svg.C b/cinelerra-5.1/plugins/svg/svg.C index 842161ae..89499d15 100644 --- a/cinelerra-5.1/plugins/svg/svg.C +++ b/cinelerra-5.1/plugins/svg/svg.C @@ -97,7 +97,7 @@ SvgMain::~SvgMain() delete overlayer; } -const char* SvgMain::plugin_title() { return _("SVG via Inkscape"); } +const char* SvgMain::plugin_title() { return N_("SVG via Inkscape"); } int SvgMain::is_realtime() { return 1; } int SvgMain::is_synthesis() { return 1; } @@ -178,7 +178,7 @@ int SvgMain::process_realtime(VFrame *input, VFrame *output) int fd = ms_time < config.ms_time ? -1 : open(filename_png, O_RDWR); if( fd < 0 ) { // file does not exist, export it char command[BCTEXTLEN]; - sprintf(command, + snprintf(command, sizeof(command), "inkscape --without-gui --export-background=0x000000 " "--export-background-opacity=0 -d %f %s --export-png=%s", config.dpi, config.svg_file, filename_png); @@ -194,7 +194,7 @@ int SvgMain::process_realtime(VFrame *input, VFrame *output) close(fd); if( ofrm && ofrm->get_color_model() != output->get_color_model() ) { VFrame *vfrm = new VFrame(ofrm->get_w(), ofrm->get_h(), - output->get_color_model()); + output->get_color_model(), 0); vfrm->transfer_from(ofrm); delete ofrm; ofrm = vfrm; }