From: Peter Meerwald Date: Tue, 13 Dec 2011 14:51:52 +0000 (+0100) Subject: echo-cancel: Set file mode to binary in test code X-Git-Tag: 1.0_branch~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f40df053c865b0caf27ca60217fc9f5a04e41a99;p=profile%2Fivi%2Fpulseaudio.git echo-cancel: Set file mode to binary in test code --- diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c index 5c7bb78..7d55594 100644 --- a/src/modules/echo-cancel/module-echo-cancel.c +++ b/src/modules/echo-cancel/module-echo-cancel.c @@ -2047,12 +2047,12 @@ int main(int argc, char* argv[]) { goto usage; } - u.captured_file = fopen(argv[2], "r"); + u.captured_file = fopen(argv[2], "rb"); if (u.captured_file == NULL) { perror ("fopen failed"); goto fail; } - u.played_file = fopen(argv[1], "r"); + u.played_file = fopen(argv[1], "rb"); if (u.played_file == NULL) { perror ("fopen failed"); goto fail; @@ -2091,7 +2091,7 @@ int main(int argc, char* argv[]) { goto fail; } - u.drift_file = fopen(argv[6], "r"); + u.drift_file = fopen(argv[6], "rt"); if (u.drift_file == NULL) { perror ("fopen failed");