rework histogram_bezier, init wm icon set_icon(gg), update de.po+msg/txt
[goodguy/history.git] / cinelerra-5.1 / cinelerra / vrender.C
index 1a3706fa7b9d3462c4f8d407175799ea5e5d9b37..42f83ef87e7d86e57a2c84a8bf7b4781fad41984 100644 (file)
@@ -271,7 +271,7 @@ int VRender::get_colormodel(VEdit *playable_edit, int use_vconsole, int use_bren
                                        colormodel = BC_BGR8888;
                                else {
 // file favorite colormodel may mismatch rgb/yuv
-                                       int vstream = playable_edit->channel;
+                                       int vstream = playable_edit ? playable_edit->channel : -1;
                                        int best_colormodel = file->get_best_colormodel(vconfig->driver, vstream);
                                        if( BC_CModels::is_yuv(best_colormodel) == BC_CModels::is_yuv(colormodel) )
                                                colormodel = best_colormodel;
@@ -462,9 +462,9 @@ void VRender::run()
                        __LINE__, current_position, done);
 
 // Update tracking.
-               if(renderengine->command->realtime &&
-                       renderengine->playback_engine &&
-                       renderengine->command->command != CURRENT_FRAME)
+               if(renderengine->command->realtime && renderengine->playback_engine &&
+                       renderengine->command->command != CURRENT_FRAME &&
+                       renderengine->command->command != LAST_FRAME)
                {
                        renderengine->playback_engine->update_tracking(fromunits(current_position));
                }