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;
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;
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;