Added video frame dispose macro

This commit is contained in:
Martin Pulec
2014-02-04 13:20:17 +01:00
parent e114af549f
commit ec2103099b
7 changed files with 9 additions and 16 deletions

View File

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