delete [] ypts;
}
-const char* Motion51Main::plugin_title() { return _("Motion51"); }
+const char* Motion51Main::plugin_title() { return N_("Motion51"); }
int Motion51Main::is_realtime() { return 1; }
int Motion51Main::is_multichannel() { return 1; }
delete tmp; tmp = 0;
}
if( !tmp )
- tmp = new VFrame(0, -1, ref->get_w(), ref->get_h(), ref->get_color_model(), -1);
+ tmp = new VFrame(ref->get_w(), ref->get_h(), ref->get_color_model(), 0);
return tmp;
}
if( key == active_key ) return 1;
if( !active_fp ) {
close_cache_file();
- sprintf(cache_file, "%s.bak", config.tracking_file);
+ snprintf(cache_file, sizeof(cache_file), "%s.bak", config.tracking_file);
::rename(config.tracking_file, cache_file);
if( !(active_fp = fopen(config.tracking_file, "w")) ) {
perror(config.tracking_file);