diff --git a/avdecoder.h b/avdecoder.h
index 7459056..d4d08fc 100644
--- a/avdecoder.h
+++ b/avdecoder.h
@@ -36,14 +36,17 @@ class AVDecoder
public:
AVDecoder();
~AVDecoder();
+
bool open(const QString filename);
+ void close();
+
QByteArray getAudioThumbnail(int width, int height);
QByteArray getVideoThumbnail(int width, int height);
void getPictureMetadata(metadata_t &metadata);
void getAudioMetadata(metadata_t &metadata);
void getVideoMetadata(metadata_t &metadata);
- void close();
+ // simulate a static constructor to initialize libav only once
class AvInit
{
public:
diff --git a/backupitem.cpp b/backupitem.cpp
index 9a0e54d..810c92a 100644
--- a/backupitem.cpp
+++ b/backupitem.cpp
@@ -25,9 +25,9 @@
#include
%1
" -"%2
" -""; + "%1
" + "%2
" + "