summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp b/core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp
index 440747a..0c7b1ea 100644
--- a/core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp
+++ b/core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp
@@ -12,60 +12,62 @@
12* but WITHOUT ANY WARRANTY; without even the implied warranty of 12* but WITHOUT ANY WARRANTY; without even the implied warranty of
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14* GNU General Public License for more details. 14* GNU General Public License for more details.
15* 15*
16* You should have received a copy of the GNU General Public License 16* You should have received a copy of the GNU General Public License
17* along with this program; if not, write to the Free Software 17* along with this program; if not, write to the Free Software
18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19****************************************************************************/ 19****************************************************************************/
20 20
21#include "libtremorplugin.h" 21#include "libtremorplugin.h"
22#include "libtremorpluginimpl.h" 22#include "libtremorpluginimpl.h"
23 23
24 24
25LibTremorPluginImpl::LibTremorPluginImpl() 25LibTremorPluginImpl::LibTremorPluginImpl()
26 : libtremorplugin(0), ref(0) 26 : libtremorplugin(0), ref(0)
27{ 27{
28} 28}
29 29
30 30
31LibTremorPluginImpl::~LibTremorPluginImpl() 31LibTremorPluginImpl::~LibTremorPluginImpl()
32{ 32{
33 if ( libtremorplugin ) 33 if ( libtremorplugin )
34 delete libtremorplugin; 34 delete libtremorplugin;
35} 35}
36 36
37 37
38MediaPlayerDecoder *LibTremorPluginImpl::decoder() 38MediaPlayerDecoder *LibTremorPluginImpl::decoder()
39{ 39{
40 if ( !libtremorplugin ) 40 if ( !libtremorplugin )
41 libtremorplugin = new LibTremorPlugin; 41 libtremorplugin = new LibTremorPlugin;
42 return libtremorplugin; 42 return libtremorplugin;
43} 43}
44 44
45 45
46MediaPlayerEncoder *LibTremorPluginImpl::encoder() 46MediaPlayerEncoder *LibTremorPluginImpl::encoder()
47{ 47{
48 return NULL; 48 return NULL;
49} 49}
50 50
51 51
52#ifndef QT_NO_COMPONENT 52#ifndef QT_NO_COMPONENT
53 53
54 54
55QRESULT LibTremorPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 55QRESULT LibTremorPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
56{ 56{
57 *iface = 0; 57 *iface = 0;
58 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MediaPlayerPlugin ) ) 58 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MediaPlayerPlugin ) )
59 *iface = this, (*iface)->addRef(); 59 *iface = this, (*iface)->addRef();
60 else
61 return QS_FALSE;
60 return QS_OK; 62 return QS_OK;
61} 63}
62 64
63 65
64Q_EXPORT_INTERFACE() 66Q_EXPORT_INTERFACE()
65{ 67{
66 Q_CREATE_INSTANCE( LibTremorPluginImpl ) 68 Q_CREATE_INSTANCE( LibTremorPluginImpl )
67} 69}
68 70
69 71
70#endif 72#endif
71 73