mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 06:40:26 +00:00
Added video frame dispose macro
This commit is contained in:
@@ -151,9 +151,7 @@ struct dispose_original_frame_udata {
|
||||
pthread_mutex_lock(&inst->m_lock);
|
||||
inst->m_disposed++;
|
||||
if (inst->m_disposed == inst->m_original_frame->tile_count) {
|
||||
if (inst->m_original_frame->dispose) {
|
||||
inst->m_original_frame->dispose(inst->m_original_frame);
|
||||
}
|
||||
VIDEO_FRAME_DISPOSE(inst->m_original_frame);
|
||||
pthread_mutex_unlock(&inst->m_lock);
|
||||
delete inst;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user