X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fguicast%2Fbcbitmap.C;fp=cinelerra-5.1%2Fguicast%2Fbcbitmap.C;h=e8ce7622d34acba22777a51193a0c7b1a78ca0e9;hb=5249bc8407920effc00e13940d3d4ccea0dd5d9f;hp=231ce559a8039a7b652d1dbc459e6d7db5fdffdd;hpb=611ad6cf9d8358b97a61643cb0dccabce70eae26;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcbitmap.C b/cinelerra-5.1/guicast/bcbitmap.C index 231ce559..e8ce7622 100644 --- a/cinelerra-5.1/guicast/bcbitmap.C +++ b/cinelerra-5.1/guicast/bcbitmap.C @@ -335,8 +335,6 @@ int BC_Bitmap::initialize(BC_WindowBase *parent_window, else this->avail_lock->reset(); this->buffers = 0; - this->last_pixmap_used = 0; - this->last_pixmap = 0; this->active_bfr = 0; this->buffer_count = 0; @@ -459,12 +457,7 @@ int BC_Bitmap::allocate_data() int BC_Bitmap::delete_data() { //printf("BC_Bitmap::delete_data 1\n"); - if( last_pixmap_used && xv_portid >= 0 ) - XvStopVideo(top_level->display, xv_portid, last_pixmap); update_buffers(0); - if( xv_portid >= 0 ) - XvUngrabPort(top_level->display, xv_portid, CurrentTime); - last_pixmap_used = 0; active_bfr = 0; buffer_count = 0; max_buffer_count = 0; @@ -593,8 +586,6 @@ int BC_Bitmap::write_drawable(Drawable &pixmap, GC &gc, avail.append(bfr); active_bfr = 0; avail_lock->unlock(); - last_pixmap = pixmap; - last_pixmap_used = 1; if( !dont_wait && !shm_reply ) XSync(top_level->display, False); return 0;