summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/modplug
authorzecke <zecke>2004-03-14 18:05:28 (UTC)
committer zecke <zecke>2004-03-14 18:05:28 (UTC)
commit9e54b8bd8343af7c301da17d82596d6027e53309 (patch) (side-by-side diff)
tree693613ff9f1a0f3415e0623e636d47ac4798da2d /core/multimedia/opieplayer/modplug
parent98bbe5561e8e1a862e19a3d0a0d49ed90ef15b54 (diff)
downloadopie-9e54b8bd8343af7c301da17d82596d6027e53309.zip
opie-9e54b8bd8343af7c301da17d82596d6027e53309.tar.gz
opie-9e54b8bd8343af7c301da17d82596d6027e53309.tar.bz2
OpiePlayer -> ODP
Diffstat (limited to 'core/multimedia/opieplayer/modplug') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/modplug/modpluginimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/modplug/modpluginimpl.cpp b/core/multimedia/opieplayer/modplug/modpluginimpl.cpp
index 6e64e76..6205779 100644
--- a/core/multimedia/opieplayer/modplug/modpluginimpl.cpp
+++ b/core/multimedia/opieplayer/modplug/modpluginimpl.cpp
@@ -16,45 +16,47 @@
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include "modplugin.h"
#include "modpluginimpl.h"
ModPluginImpl::ModPluginImpl()
:m_plugin( 0 ), ref( 0 )
{
}
ModPluginImpl::~ModPluginImpl()
{
delete m_plugin;
}
#ifndef QT_NO_COMPONENT
QRESULT ModPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
{
*iface = 0;
if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MediaPlayerPlugin ) )
*iface = this, (*iface)->addRef();
+ else
+ return QS_FALSE;
return QS_OK;
}
Q_EXPORT_INTERFACE()
{
Q_CREATE_INSTANCE( ModPluginImpl )
}
#endif
MediaPlayerDecoder *ModPluginImpl::decoder()
{
if ( !m_plugin )
m_plugin = new ModPlugin;
return m_plugin;
}
MediaPlayerEncoder *ModPluginImpl::encoder()
{
return 0;
}