#include "asset.h"
#include "bcsignals.h"
#include "cache.h"
+#include "canvas.h"
#include "clip.h"
#include "condition.h"
#include "datatype.h"
int VRender::flash_output()
{
- if(video_out)
- return renderengine->video->write_buffer(video_out, renderengine->get_edl());
- else
- return 0;
+ if( !video_out ) return 0;
+ renderengine->update_scope(video_out);
+ return renderengine->video->write_buffer(video_out, renderengine->get_edl());
}
int VRender::process_buffer(VFrame *video_out,
void VRender::run()
{
- int reconfigure;
+ int reconfigure = 1;
const int debug = 0;
// Want to know how many samples rendering each frame takes.
// Want the condition before, since only 1 frame is rendered
// and the number of frames skipped after this frame varies.
current_input_length = 1;
-
- reconfigure = vconsole->test_reconfigure(current_position,
- current_input_length);
-
-
+ if( !reconfigure ) reconfigure =
+ vconsole->test_reconfigure(current_position, current_input_length);
if(debug) printf("VRender::run %d\n", __LINE__);
- if(reconfigure) restart_playback();
+ if( reconfigure ) {
+ restart_playback();
+ reconfigure = 0;
+ }
if(debug) printf("VRender::run %d\n", __LINE__);
process_buffer(current_position, use_opengl);