[pitivi] AudioPreviewer: open pickle file in binary mode.



commit d9a9643bd00c7cc26e1e45e478d10742950635ab
Author: Mathieu Duponchelle <mathieu duponchelle opencreed com>
Date:   Tue Apr 1 19:44:36 2014 +0200

    AudioPreviewer: open pickle file in binary mode.

 pitivi/timeline/previewers.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 525edae..955aba8 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -844,7 +844,7 @@ class AudioPreviewer(Clutter.Actor, PreviewGenerator, Zoomable, Loggable):
             samples = numpy.array(self.peaks[0])
 
         self.samples = samples.tolist()
-        f = open(self.wavefile, 'w')
+        f = open(self.wavefile, 'wb')
         pickle.dump(self.samples, f)
 
     def _startRendering(self):


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