]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
write.c: Fix cut'n'paste typo.
authorAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 17:39:25 +0000 (18:39 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 17:39:25 +0000 (18:39 +0100)
write.c

diff --git a/write.c b/write.c
index def31334e5f89c0efc46055b8b28171a6107f614..c76b6c46e65a453fcd579d7cee2cb4408de45639 100644 (file)
--- a/write.c
+++ b/write.c
@@ -134,6 +134,7 @@ static int check_wav_exec(struct btr_node *btrn, const char *cmd, char **result)
 {
        struct check_wav_task_btr *cwt = btr_context(btrn);
 
 {
        struct check_wav_task_btr *cwt = btr_context(btrn);
 
+
        if (!strcmp(cmd, "samplerate")) {
                if (cwt->state != CWS_HAVE_HEADER)
                        return -ERRNO_TO_PARA_ERROR(ENAVAIL);
        if (!strcmp(cmd, "samplerate")) {
                if (cwt->state != CWS_HAVE_HEADER)
                        return -ERRNO_TO_PARA_ERROR(ENAVAIL);
@@ -143,7 +144,7 @@ static int check_wav_exec(struct btr_node *btrn, const char *cmd, char **result)
        if (!strcmp(cmd, "channels")) {
                if (cwt->state != CWS_HAVE_HEADER)
                        return -ERRNO_TO_PARA_ERROR(ENAVAIL);
        if (!strcmp(cmd, "channels")) {
                if (cwt->state != CWS_HAVE_HEADER)
                        return -ERRNO_TO_PARA_ERROR(ENAVAIL);
-               *result = make_message("%d", cwt->samplerate);
+               *result = make_message("%d", cwt->channels);
                return 1;
        }
        return -ERRNO_TO_PARA_ERROR(ENOTSUP);
                return 1;
        }
        return -ERRNO_TO_PARA_ERROR(ENOTSUP);