|
From: Tapio V. <aa...@us...> - 2011-02-07 16:01:22
|
Module: editor
Branch: master
Commit: f7567b72eb9b1c5fe3d92e5f1910e8ea4b622dae
Author: Tapio Vierros <tap...@gm...>
Date: Mon Feb 7 18:00:44 2011 +0200
Fix analyzing songs from paths containing non-ascii characters.
---
pitchvis.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pitchvis.cc b/pitchvis.cc
index 34611f3..e485bee 100644
--- a/pitchvis.cc
+++ b/pitchvis.cc
@@ -21,7 +21,8 @@ void PitchVis::run()
{
try {
// Initialize FFmpeg decoding
- FFmpeg mpeg(fileName.toStdString());
+ std::string file(fileName.toLocal8Bit().data(), fileName.toLocal8Bit().size());
+ FFmpeg mpeg(file);
{
QMutexLocker locker(&mutex);
paths.clear();
|