Diffstat (limited to 'core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/vorbis/libtremorpluginimpl.cpp | 2 |
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 | ||
25 | LibTremorPluginImpl::LibTremorPluginImpl() | 25 | LibTremorPluginImpl::LibTremorPluginImpl() |
26 | : libtremorplugin(0), ref(0) | 26 | : libtremorplugin(0), ref(0) |
27 | { | 27 | { |
28 | } | 28 | } |
29 | 29 | ||
30 | 30 | ||
31 | LibTremorPluginImpl::~LibTremorPluginImpl() | 31 | LibTremorPluginImpl::~LibTremorPluginImpl() |
32 | { | 32 | { |
33 | if ( libtremorplugin ) | 33 | if ( libtremorplugin ) |
34 | delete libtremorplugin; | 34 | delete libtremorplugin; |
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | MediaPlayerDecoder *LibTremorPluginImpl::decoder() | 38 | MediaPlayerDecoder *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 | ||
46 | MediaPlayerEncoder *LibTremorPluginImpl::encoder() | 46 | MediaPlayerEncoder *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 | ||
55 | QRESULT LibTremorPluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 55 | QRESULT 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 | ||
64 | Q_EXPORT_INTERFACE() | 66 | Q_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 | ||