X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcbitmap.C;h=e8ce7622d34acba22777a51193a0c7b1a78ca0e9;hb=f30a92d2f983d5ec09c8fd8db48c9bcb7ec76763;hp=e9118da47ab9c1248516ba647ba67dec81fcd39e;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcbitmap.C b/cinelerra-5.1/guicast/bcbitmap.C index e9118da4..e8ce7622 100644 --- a/cinelerra-5.1/guicast/bcbitmap.C +++ b/cinelerra-5.1/guicast/bcbitmap.C @@ -56,7 +56,7 @@ BC_BitmapImage::~BC_BitmapImage() bool BC_BitmapImage::is_avail() { - return owner == &bitmap->avail; + return list == &bitmap->avail; } BC_BitmapImage *BC_Bitmap::cur_bfr() @@ -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;