x265 patch for threadpool shutdown fix submited as:
[goodguy/history.git] / cinelerra-5.0 / plugins / timefront / timefront.C
index 97272f0736588556e786ac88995461ab456f4ce8..88dc2987768639b39d1e750a9a29ba6609af3398 100644 (file)
@@ -645,7 +645,7 @@ TimeFrontMain::~TimeFrontMain()
        if(overlayer) delete overlayer;
 }
 
-const char* TimeFrontMain::plugin_title() { return N_("TimeFront"); }
+const char* TimeFrontMain::plugin_title() { return _("TimeFront"); }
 int TimeFrontMain::is_realtime() { return 1; }
 int TimeFrontMain::is_multichannel() { return 1; }
 
@@ -770,7 +770,8 @@ int TimeFrontMain::process_buffer(VFrame **frame,
        read_frame(framelist[0],
                0,
                start_position,
-               frame_rate);
+               frame_rate,
+               0);
        this->input = framelist[0];
        this->output = outframes[0];
        need_reconfigure |= load_configuration();
@@ -780,12 +781,12 @@ int TimeFrontMain::process_buffer(VFrame **frame,
                if (get_total_buffers() != 2) 
                {
                        // FIXME, maybe this should go to some other notification area?
-                       printf("ERROR: TimeFront plugin - If you are using another track for timefront, you have to have it under shared effects\n");
+                       printf(_("ERROR: TimeFront plugin - If you are using another track for timefront, you have to have it under shared effects\n"));
                        return 0;
                }
                if (outframes[0]->get_w() != outframes[1]->get_w() || outframes[0]->get_h() != outframes[1]->get_h())
                {
-                       printf("Sizes of master track and timefront track do not match\n");
+                       printf(_("Sizes of master track and timefront track do not match\n"));
                        return 0;
                }
        }
@@ -832,7 +833,7 @@ int TimeFrontMain::process_buffer(VFrame **frame,
                        
                        default:
                                {
-                                       printf("TimeFront plugin error: ALPHA used, but project color model does not have alpha\n");
+                                       printf(_("TimeFront plugin error: ALPHA used, but project color model does not have alpha\n"));
                                        return 1;
                                        break;
                                }
@@ -849,7 +850,8 @@ int TimeFrontMain::process_buffer(VFrame **frame,
                read_frame(tfframe,
                        1,
                        start_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
                if (config.track_usage == TimeFrontConfig::OTHERTRACK_INTENSITY)
                {
                        switch (tfframe->get_color_model())
@@ -892,14 +894,14 @@ int TimeFrontMain::process_buffer(VFrame **frame,
                                
                                default:
                                        {
-                                               printf("TimeFront plugin error: ALPHA track used, but project color model does not have alpha\n");
+                                               printf(_("TimeFront plugin error: ALPHA track used, but project color model does not have alpha\n"));
                                                return 1;
                                                break;
                                        }
                        }
                } else
                {
-                       printf("TimeFront plugin error: unsupported track_usage parameter\n");
+                       printf(_("TimeFront plugin error: unsupported track_usage parameter\n"));
                        return 1;
                }
        }       
@@ -916,7 +918,8 @@ int TimeFrontMain::process_buffer(VFrame **frame,
                        read_frame(framelist[i],
                                0,
                                start_position - i,
-                               frame_rate);
+                               frame_rate,
+                               0);
                }
        }