break;
}
}
-
Exynos_OSAL_MutexUnlock(pExynosPort->hPortMutex);
- pExynosComponent->pCallbacks->EmptyBufferDone(pOMXComponent, pExynosComponent->callbackData, bufferHeader);
+
+ if ((bufferHeader != NULL) && (bufferHeader->pBuffer != NULL))
+ pExynosComponent->pCallbacks->EmptyBufferDone(pOMXComponent, pExynosComponent->callbackData, bufferHeader);
return ret;
}
break;
}
}
-
Exynos_OSAL_MutexUnlock(pExynosPort->hPortMutex);
- pExynosComponent->pCallbacks->FillBufferDone(pOMXComponent, pExynosComponent->callbackData, bufferHeader);
+
+ if ((bufferHeader != NULL) && (bufferHeader->pBuffer != NULL))
+ pExynosComponent->pCallbacks->FillBufferDone(pOMXComponent, pExynosComponent->callbackData, bufferHeader);
return ret;
}