file->set_layer(local_layer, 1);
file->set_video_position(local_position, 1);
int supported_colormodel =
- file->get_best_colormodel(PLAYBACK_ASYNCHRONOUS);
+ file->get_best_colormodel(PLAYBACK_ASYNCHRONOUS, local_layer);
if(debug) PRINT_TRACE
//printf("FileThread::run %d\n", __LINE__);
if(!local_frame->frame)
{
- local_frame->frame = new VFrame(0,
- -1,
- file->asset->width,
- file->asset->height,
- supported_colormodel,
- -1);
+ local_frame->frame =
+ new VFrame(file->asset->width, file->asset->height,
+ supported_colormodel, 0);
}
// Read it
else
{
video_buffer[buffer][layer][frame] =
- new VFrame(0,
- -1,
- file->asset->width,
- file->asset->height,
- color_model,
- -1);
+ new VFrame( file->asset->width, file->asset->height,
+ color_model, -1);
// printf("FileThread::start_writing %d %d %d %d %p\n",
// __LINE__,
// buffer,