]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - wmadec_filter.c
audiod: Request a minimal delay if the status buffer tree node is in error state.
[paraslash.git] / wmadec_filter.c
index 1233996284f231d9855e7c14954fb77d317816f9..d78c72bd54724cd58a446dd859deba156672b541 100644 (file)
@@ -1210,13 +1210,13 @@ static int wmadec_execute(struct btr_node *btrn, const char *cmd, char **result)
 
        if (!strcmp(cmd, "samplerate")) {
                if (pwd->ahi.sample_rate == 0)
-                       return -ERRNO_TO_PARA_ERROR(ENAVAIL);
+                       return -E_BTR_NAVAIL;
                *result = make_message("%u", pwd->ahi.sample_rate);
                return 1;
        }
        if (!strcmp(cmd, "channels")) {
                if (pwd->ahi.channels == 0)
-                       return -ERRNO_TO_PARA_ERROR(ENAVAIL);
+                       return -E_BTR_NAVAIL;
                *result = make_message("%u", pwd->ahi.channels);
                return 1;
        }