channel locking: Add locking for channel snapshot creation
[asterisk/asterisk.git] / formats / format_h264.c
index e126010..e090c2b 100644 (file)
@@ -146,7 +146,7 @@ static int h264_trunc(struct ast_filestream *fs)
                ast_log(AST_LOG_WARNING, "Unable to determine file descriptor for h264 filestream %p: %s\n", fs, strerror(errno));
                return -1;
        }
-       if ((cur = ftello(fs->f) < 0)) {
+       if ((cur = ftello(fs->f)) < 0) {
                ast_log(AST_LOG_WARNING, "Unable to determine current position in h264 filestream %p: %s\n", fs, strerror(errno));
                return -1;
        }