summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/mediaobject.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-09-07 16:30:53 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-09-07 16:30:53 (GMT)
commitc4d341ecf26d63cc7410756f8f7d1926c277f02f (patch)
treeb22708e341e4a89dd597a1b5d67e23a6dd4d19d7 /src/3rdparty/phonon/mmf/mediaobject.cpp
parent0ad37ee268f4a314ee31e70fc8b4acfc9aa46970 (diff)
downloadQt-c4d341ecf26d63cc7410756f8f7d1926c277f02f.zip
Qt-c4d341ecf26d63cc7410756f8f7d1926c277f02f.tar.gz
Qt-c4d341ecf26d63cc7410756f8f7d1926c277f02f.tar.bz2
Modified file-loading code to use QDir::toNativeSeparators
Diffstat (limited to 'src/3rdparty/phonon/mmf/mediaobject.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/mediaobject.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/mmf/mediaobject.cpp b/src/3rdparty/phonon/mmf/mediaobject.cpp
index bf55781..a2a7e4d 100644
--- a/src/3rdparty/phonon/mmf/mediaobject.cpp
+++ b/src/3rdparty/phonon/mmf/mediaobject.cpp
@@ -23,6 +23,8 @@ along with this library. If not, see <http://www.gnu.org/licenses/>.
#include "utils.h"
#include "videoplayer.h"
+#include <QDir>
+
QT_BEGIN_NAMESPACE
using namespace Phonon;
@@ -101,7 +103,8 @@ MMF::MediaType MMF::MediaObject::fileMediaType
MediaType result = MediaTypeUnknown;
if (openRecognizer()) {
- QHBufC fileNameSymbian = Utils::symbianFilename(fileName);
+
+ const QHBufC fileNameSymbian(QDir::toNativeSeparators(fileName));
m_file.Close();
TInt err = m_file.Open(m_fileServer, *fileNameSymbian, EFileRead | EFileShareReadersOnly);