summaryrefslogtreecommitdiffstats
path: root/polyp/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-14 23:08:39 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-14 23:08:39 +0000
commit935826f4f318a89a0a570f766deb54808a4f9683 (patch)
tree3e2cf7ec1386fa5711367b59bb1aaa9d309a86fc /polyp/main.c
parent6e019795bff589ef0a867772975e34da78fffefb (diff)
make module-combine autoloadable
clean up cli language introduce lazy sample cache git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@201 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/main.c')
-rw-r--r--polyp/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/polyp/main.c b/polyp/main.c
index 9de69ca6..04bcceef 100644
--- a/polyp/main.c
+++ b/polyp/main.c
@@ -234,8 +234,10 @@ int main(int argc, char *argv[]) {
buf = pa_strbuf_new();
assert(buf);
if (conf->default_script_file)
- pa_cli_command_execute_file(c, conf->default_script_file, buf, &conf->fail, &conf->verbose);
- r = pa_cli_command_execute(c, conf->script_commands, buf, &conf->fail, &conf->verbose);
+ r = pa_cli_command_execute_file(c, conf->default_script_file, buf, &conf->fail, &conf->verbose);
+
+ if (r >= 0)
+ r = pa_cli_command_execute(c, conf->script_commands, buf, &conf->fail, &conf->verbose);
pa_log(s = pa_strbuf_tostring_free(buf));
pa_xfree(s);