summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/TimedEventQueue.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-08-26 14:48:20 -0700
committerAndreas Huber <andih@google.com>2009-08-26 14:48:20 -0700
commit0c89199745bc1bf05b997fc7c342017807676b6f (patch)
tree2f0e1b4ed919909207d70ce9814f5854dba551ea /media/libstagefright/TimedEventQueue.cpp
parent355edcea2f15c0f619c1e1d0f4fa433b0d38098f (diff)
downloadframeworks_av-0c89199745bc1bf05b997fc7c342017807676b6f.zip
frameworks_av-0c89199745bc1bf05b997fc7c342017807676b6f.tar.gz
frameworks_av-0c89199745bc1bf05b997fc7c342017807676b6f.tar.bz2
assert => CHECK in stagefright.
Diffstat (limited to 'media/libstagefright/TimedEventQueue.cpp')
-rw-r--r--media/libstagefright/TimedEventQueue.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/media/libstagefright/TimedEventQueue.cpp b/media/libstagefright/TimedEventQueue.cpp
index 2f8a19f..3d85f75 100644
--- a/media/libstagefright/TimedEventQueue.cpp
+++ b/media/libstagefright/TimedEventQueue.cpp
@@ -24,9 +24,7 @@
#include <sys/time.h>
-#undef NDEBUG
-#include <assert.h>
-
+#include <media/stagefright/MediaDebug.h>
#include <media/stagefright/TimedEventQueue.h>
namespace android {
@@ -89,7 +87,7 @@ void TimedEventQueue::postEventToBack(const sp<Event> &event) {
void TimedEventQueue::postEventWithDelay(
const sp<Event> &event, int64_t delay_us) {
- assert(delay_us >= 0);
+ CHECK(delay_us >= 0);
postTimedEvent(event, getRealTimeUs() + delay_us);
}