summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
Diffstat (limited to 'formats')
-rw-r--r--formats/format_g719.c2
-rw-r--r--formats/format_gsm.c2
-rw-r--r--formats/format_pcm.c4
-rw-r--r--formats/format_siren14.c2
-rw-r--r--formats/format_siren7.c2
-rw-r--r--formats/format_sln.c2
-rw-r--r--formats/format_vox.c2
-rw-r--r--formats/format_wav.c2
-rw-r--r--formats/format_wav_gsm.c2
9 files changed, 10 insertions, 10 deletions
diff --git a/formats/format_g719.c b/formats/format_g719.c
index 903fbcde9..0a0eea170 100644
--- a/formats/format_g719.c
+++ b/formats/format_g719.c
@@ -92,7 +92,7 @@ static int g719seek(struct ast_filestream *fs, off_t sample_offset, int whence)
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in g719 filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_gsm.c b/formats/format_gsm.c
index 4cf6579a6..26306806c 100644
--- a/formats/format_gsm.c
+++ b/formats/format_gsm.c
@@ -120,7 +120,7 @@ static int gsm_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in g719 filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index 2a740ef5d..f65a6202f 100644
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -115,7 +115,7 @@ static int pcm_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in pcm filestream %p: %s\n", fs, strerror(errno));
return -1;
}
@@ -414,7 +414,7 @@ static int au_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in au filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_siren14.c b/formats/format_siren14.c
index 08c2cbfbf..f3e53e795 100644
--- a/formats/format_siren14.c
+++ b/formats/format_siren14.c
@@ -92,7 +92,7 @@ static int siren14seek(struct ast_filestream *fs, off_t sample_offset, int whenc
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in siren14 filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_siren7.c b/formats/format_siren7.c
index 955323ed2..a07144bfc 100644
--- a/formats/format_siren7.c
+++ b/formats/format_siren7.c
@@ -92,7 +92,7 @@ static int siren7seek(struct ast_filestream *fs, off_t sample_offset, int whence
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in siren7 filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_sln.c b/formats/format_sln.c
index b90f6b27a..982054459 100644
--- a/formats/format_sln.c
+++ b/formats/format_sln.c
@@ -86,7 +86,7 @@ static int slinear_seek(struct ast_filestream *fs, off_t sample_offset, int when
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in sln filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_vox.c b/formats/format_vox.c
index bfa0d8e4c..3f3b1eabb 100644
--- a/formats/format_vox.c
+++ b/formats/format_vox.c
@@ -90,7 +90,7 @@ static int vox_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in g719 filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_wav.c b/formats/format_wav.c
index df09db353..ca12ca47b 100644
--- a/formats/format_wav.c
+++ b/formats/format_wav.c
@@ -468,7 +468,7 @@ static int wav_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
return -1;
}
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in wav filestream %p: %s\n", fs, strerror(errno));
return -1;
}
diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c
index bbf3339bc..e4c5051a2 100644
--- a/formats/format_wav_gsm.c
+++ b/formats/format_wav_gsm.c
@@ -489,7 +489,7 @@ static int wav_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
}
/* XXX ideally, should round correctly */
- if ((max = ftello(fs->f) < 0)) {
+ if ((max = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine max position in WAV filestream %p: %s\n", fs, strerror(errno));
return -1;
}