From 2897194bc29b89d65771642e10003493aa98a60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 10 Oct 2014 13:03:04 +0200 Subject: [PATCH] Fix FTBFS from commit 0e824732 --- k9author/k9avidecode.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp index a3a23c6..3910ce9 100644 --- a/k9author/k9avidecode.cpp +++ b/k9author/k9avidecode.cpp @@ -9,6 +9,7 @@ // Copyright: See COPYING file that comes with this distribution // // +#include "config.h" #include "k9avidecode.h" #ifdef OLD_FFMPEG @@ -117,8 +118,10 @@ k9AviDecode::k9AviDecode(TQObject *parent, const char *name) # ifndef HAVE_SWSCALE img_convert = (img_convert_t)dlsym(CodecHandle,"img_convert"); //if img_convert is null (deprecated in ffmpeg), we need libswscale - if (!img_convert) - errs << i18n("Cannot open the library %1").arg("libswscale"); + if (!img_convert) { + m_error = i18n("Cannot open the library %1").arg("libswscale"); + return; + } # endif av_free = (av_free_t)dlsym(CodecHandle,"av_free"); av_free_packet = (av_free_packet_t)dlsym(CodecHandle,"av_free_packet");