OSDN Git Service

Note to self: Don't reverse the arguments to fseek(o)...
authorAndreas Huber <andih@google.com>
Tue, 8 Dec 2009 00:37:37 +0000 (16:37 -0800)
committerAndreas Huber <andih@google.com>
Tue, 8 Dec 2009 00:41:57 +0000 (16:41 -0800)
media/libstagefright/FileSource.cpp

index 130239e..37c2450 100644 (file)
@@ -70,7 +70,7 @@ status_t FileSource::getSize(off_t *size) {
         return OK;
     }
 
-    fseek(mFile, SEEK_END, 0);
+    fseek(mFile, 0, SEEK_END);
     *size = ftello(mFile);
 
     return OK;