- if( !file ) return 0;
- VFrame frame(asset->width, asset->height, BC_RGB888);
- file->set_layer(0);
- file->set_video_position(images.size(),0);
- VFrame *vfrm0 = images[0];
- int ww = vfrm0->get_w(), hh = vfrm0->get_h();
- int cmdl = vfrm0->get_color_model();
+ if( !file ) return 0;
+ if( temp && (temp->get_w() != asset->width || temp->get_h() != asset->height) ) {
+ delete temp; temp = 0;
+ }
+ if( !temp )
+ temp = new VFrame(asset->width, asset->height, BC_RGB888);
+ int ww = picon->gui->vicon_thread->view_w;
+ int hh = picon->gui->vicon_thread->view_h;