From 17f54c787aa4bc0082bc0cb8ae57f98f9c258cfa Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 31 Dec 2009 18:39:25 +0100 Subject: [PATCH] write.c: Fix cut'n'paste typo. --- write.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/write.c b/write.c index def31334..c76b6c46 100644 --- 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); + 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); - *result = make_message("%d", cwt->samplerate); + *result = make_message("%d", cwt->channels); return 1; } return -ERRNO_TO_PARA_ERROR(ENOTSUP); -- 2.39.2