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