[PATCH] module-echo-cancel: set file mode to binary in test code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx>

---
 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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux