summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/encoders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/encoders.cpp')
-rw-r--r--rbutil/rbutilqt/encoders.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/encoders.cpp b/rbutil/rbutilqt/encoders.cpp
index 4f25f813dd..54fc5ad201 100644
--- a/rbutil/rbutilqt/encoders.cpp
+++ b/rbutil/rbutilqt/encoders.cpp
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * 8 *
9 * Copyright (C) 2007 by Dominik Wenger 9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: talkfile.cpp 15212 2007-10-19 21:49:07Z domonoky $ 10 * $Id: encoders.cpp 15212 2007-10-19 21:49:07Z domonoky $
11 * 11 *
12 * All files in this archive are subject to the GNU General Public License. 12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement. 13 * See the file COPYING in the source tree root for full license agreement.
@@ -33,6 +33,9 @@ void initEncoderList()
33// function to get a specific encoder 33// function to get a specific encoder
34EncBase* getEncoder(QString encname) 34EncBase* getEncoder(QString encname)
35{ 35{
36 // init list if its empty
37 if(encoderList.count() == 0) initEncoderList();
38
36 QString encoder = encoderList.key(encname); 39 QString encoder = encoderList.key(encname);
37 40
38 // check cache 41 // check cache
@@ -59,6 +62,9 @@ EncBase* getEncoder(QString encname)
59// get the list of encoders, nice names 62// get the list of encoders, nice names
60QStringList getEncoderList() 63QStringList getEncoderList()
61{ 64{
65 // init list if its empty
66 if(encoderList.count() == 0) initEncoderList();
67
62 QStringList encList; 68 QStringList encList;
63 QMapIterator<QString, QString> i(encoderList); 69 QMapIterator<QString, QString> i(encoderList);
64 while (i.hasNext()) { 70 while (i.hasNext()) {