summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sndfile-util.c
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-06-27 01:19:07 +0200
committerColin Guthrie <colin@mageia.org>2011-06-27 09:59:56 +0100
commitaa7bc322e25a461a14e922f71103a7ca607482f8 (patch)
tree20e186c6486d72271679d0b51038a6e167b776e1 /src/pulsecore/sndfile-util.c
parentad1e0431fb42086351ccc25b3af47e84604895a1 (diff)
parecord: Automatically detect file format from extension
And fix a small bug in pa_sndfile_format_from_string.
Diffstat (limited to 'src/pulsecore/sndfile-util.c')
-rw-r--r--src/pulsecore/sndfile-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/sndfile-util.c b/src/pulsecore/sndfile-util.c
index 85d7a1c4..ab6485d9 100644
--- a/src/pulsecore/sndfile-util.c
+++ b/src/pulsecore/sndfile-util.c
@@ -446,7 +446,7 @@ int pa_sndfile_format_from_string(const char *name) {
pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
- if (strncasecmp(name, fi.extension, strlen(name)) == 0)
+ if (strncasecmp(name, fi.name, strlen(name)) == 0)
return fi.format;
}