[pulseaudio-discuss] [PATCH] module-echo-cancel: set file mode to binary in test code
Peter Meerwald
pmeerw at pmeerw.net
Tue Dec 13 06:51:52 PST 2011
From: Peter Meerwald <p.meerwald at bct-electronic.com>
---
src/modules/echo-cancel/module-echo-cancel.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index 7a069e8..521e8b0 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -2062,12 +2062,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;
@@ -2106,7 +2106,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");
--
1.7.4.1
More information about the pulseaudio-discuss
mailing list