From 62280d20aee3205b89437587e1d6ef90b3f22b6e Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Tue, 13 Mar 2012 12:05:25 -0300 Subject: [PATCH] [xmp] Allow output to file when silent Signed-off-by: Claudio Matsuoka --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index af1918e..afd1aca 100644 --- a/src/main.c +++ b/src/main.c @@ -156,7 +156,9 @@ int main(int argc, char **argv) if (options.silent) { sound = &sound_null; - } else if (options.out_file) { + } + + if (options.out_file) { f = fopen(options.out_file, "wb"); if (f == NULL) { perror(options.out_file);