prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / plugins / reroute / reroute.C
index 20eb2e47e9528a51a2825bc094d331dd05627b52..d4ac373b0c9d5ee8a08a762b4b4d165ddea6441a 100644 (file)
@@ -381,12 +381,12 @@ int Reroute::process_buffer(VFrame **frame,
 {
        load_configuration();
 
-       bool do_components, do_alpha;
+       bool do_components = true, do_alpha = true;
        switch(config.operation)
        {
-               case RerouteConfig::REPLACE:                    do_components      = do_alpha=true; break;
-               case RerouteConfig::REPLACE_ALPHA:      do_components=false; do_alpha=true; break;
-               case RerouteConfig::REPLACE_COMPONENTS: do_components=true; do_alpha=false; break;
+               case RerouteConfig::REPLACE:            break;
+               case RerouteConfig::REPLACE_ALPHA:      do_components = false; break;
+               case RerouteConfig::REPLACE_COMPONENTS: do_alpha = false; break;
        }
 
        if(config.output_track == RerouteConfig::TOP)
@@ -429,7 +429,8 @@ int Reroute::process_buffer(VFrame **frame,
        read_frame(target, 
                output_track, 
                start_position,
-               frame_rate);
+               frame_rate,
+               0);
        
        switch(source->get_color_model())
        {
@@ -467,7 +468,7 @@ int Reroute::process_buffer(VFrame **frame,
 
 
 
-const char* Reroute::plugin_title() { return N_("Reroute"); }
+const char* Reroute::plugin_title() { return _("Reroute"); }
 int Reroute::is_realtime()             { return 1; }
 int Reroute::is_multichannel()         { return 1; }