Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 67aaed41bc65c9d23a2f0543e7a5e178 > files > 1

kdemultimedia4-4.4.5-0.1mdv2010.1.src.rpm

Index: ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp
===================================================================
--- ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp
+++ ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp	2010-05-14 09:14:58.000000000 +0200
@@ -20,6 +20,7 @@
 
 #include <cstring>
 #include <kdebug.h>
+#include <QFileInfo>
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -64,13 +65,11 @@
     avcodec_init();
     avcodec_register_all();
 
-    QString inputFile = filename == "-" ? "pipe:" : filename;
+    QFileInfo fileInfo(filename);
 
-    if ((!m_FormatContextWasGiven) && av_open_input_file(&m_pFormatContext, inputFile.toAscii().data(), NULL, 0, NULL) != 0)
-    {
-       kDebug() <<  "Could not open input file: " << filename;
+    if ((!m_FormatContextWasGiven) && av_open_input_file(&m_pFormatContext, fileInfo.absoluteFilePath().toUtf8().data(), NULL, 0, NULL) != 0) {
+        kDebug() <<  "Could not open input file: " << fileInfo.absoluteFilePath();
     }
-
     if (av_find_stream_info(m_pFormatContext) < 0)
     {
        kDebug() << "Could not find stream information";