TimedEventQueuePrivate: Remove debugger call

This commit is contained in:
Dario Casalinuovo 2015-07-24 20:44:24 +02:00
parent 6d2f2ec177
commit 2303600a81

View File

@ -566,13 +566,14 @@ _event_queue_imp::CleanupEvent(media_timed_event *event)
if (event->cleanup == BTimedEventQueue::B_NO_CLEANUP) { if (event->cleanup == BTimedEventQueue::B_NO_CLEANUP) {
// do nothing // do nothing
} else if (event->type == BTimedEventQueue::B_HANDLE_BUFFER && event->cleanup == BTimedEventQueue::B_RECYCLE_BUFFER) { } else if (event->type == BTimedEventQueue::B_HANDLE_BUFFER
&& event->cleanup == BTimedEventQueue::B_RECYCLE_BUFFER) {
((BBuffer *)event->pointer)->Recycle(); ((BBuffer *)event->pointer)->Recycle();
DEBUG_ONLY(*const_cast<void **>(&event->pointer) = NULL); DEBUG_ONLY(*const_cast<void **>(&event->pointer) = NULL);
} else if (event->cleanup == BTimedEventQueue::B_EXPIRE_TIMER) { } else if (event->cleanup == BTimedEventQueue::B_EXPIRE_TIMER) {
// call TimerExpired() on the event->data // do nothing, called in BMediaEventLooper::DispatchEvent
debugger("BTimedEventQueue cleanup: calling TimerExpired() should be implemented here\n"); } else if (event->cleanup == B_DELETE
} else if (event->cleanup == B_DELETE || event->cleanup >= BTimedEventQueue::B_USER_CLEANUP) { || event->cleanup >= BTimedEventQueue::B_USER_CLEANUP) {
if (fCleanupHook) if (fCleanupHook)
(*fCleanupHook)(event,fCleanupHookContext); (*fCleanupHook)(event,fCleanupHookContext);
} else { } else {