diff options
author | Andreas Huber <andih@google.com> | 2009-08-26 14:48:20 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-08-26 14:48:20 -0700 |
commit | b5ceb9ee21f37ae0817c16490c1fc148dd3eb5e2 (patch) | |
tree | 6e3e5b4b48f7d2644ddb1971cbcdfdb3eba9fad6 /media/libstagefright/FileSource.cpp | |
parent | 4b8e3fb51155ab6c990803ff7780cd1b8c8f3dcf (diff) | |
download | frameworks_base-b5ceb9ee21f37ae0817c16490c1fc148dd3eb5e2.zip frameworks_base-b5ceb9ee21f37ae0817c16490c1fc148dd3eb5e2.tar.gz frameworks_base-b5ceb9ee21f37ae0817c16490c1fc148dd3eb5e2.tar.bz2 |
assert => CHECK in stagefright.
Diffstat (limited to 'media/libstagefright/FileSource.cpp')
-rw-r--r-- | media/libstagefright/FileSource.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/media/libstagefright/FileSource.cpp b/media/libstagefright/FileSource.cpp index c26d0a0..f6b90b2 100644 --- a/media/libstagefright/FileSource.cpp +++ b/media/libstagefright/FileSource.cpp @@ -15,9 +15,7 @@ */ #include <media/stagefright/FileSource.h> - -#undef NDEBUG -#include <assert.h> +#include <media/stagefright/MediaDebug.h> namespace android { @@ -40,7 +38,7 @@ ssize_t FileSource::read_at(off_t offset, void *data, size_t size) { Mutex::Autolock autoLock(mLock); int err = fseeko(mFile, offset, SEEK_SET); - assert(err != -1); + CHECK(err != -1); ssize_t result = fread(data, 1, size, mFile); |