diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-10-10 13:03:04 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-10-10 13:03:04 +0200 |
commit | 2897194bc29b89d65771642e10003493aa98a60d (patch) | |
tree | b4b35096d42f43afb2b265530c94f386904110d1 | |
parent | 0e824732db028517232f1f699ba68b2c79d5dc50 (diff) | |
download | k9copy-2897194bc29b89d65771642e10003493aa98a60d.tar.gz k9copy-2897194bc29b89d65771642e10003493aa98a60d.zip |
Fix FTBFS from commit 0e824732
-rw-r--r-- | k9author/k9avidecode.cpp | 7 |
1 files 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"); |