Diffstat (limited to 'core/multimedia/opieplayer/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/mediaplayerstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/mediaplayerstate.cpp b/core/multimedia/opieplayer/mediaplayerstate.cpp index cf166d6..6823076 100644 --- a/core/multimedia/opieplayer/mediaplayerstate.cpp +++ b/core/multimedia/opieplayer/mediaplayerstate.cpp | |||
@@ -106,49 +106,49 @@ MediaPlayerDecoder *MediaPlayerState::newDecoder( const QString& file ) { | |||
106 | if(file.left(4)=="http") | 106 | if(file.left(4)=="http") |
107 | isStreaming = TRUE; | 107 | isStreaming = TRUE; |
108 | else | 108 | else |
109 | isStreaming = FALSE; | 109 | isStreaming = FALSE; |
110 | return decoder = tmpDecoder; | 110 | return decoder = tmpDecoder; |
111 | } | 111 | } |
112 | 112 | ||
113 | 113 | ||
114 | MediaPlayerDecoder *MediaPlayerState::curDecoder() { | 114 | MediaPlayerDecoder *MediaPlayerState::curDecoder() { |
115 | return decoder; | 115 | return decoder; |
116 | } | 116 | } |
117 | 117 | ||
118 | 118 | ||
119 | // ### hack to get true sample count | 119 | // ### hack to get true sample count |
120 | MediaPlayerDecoder *MediaPlayerState::libMpeg3Decoder() { | 120 | MediaPlayerDecoder *MediaPlayerState::libMpeg3Decoder() { |
121 | return libmpeg3decoder; | 121 | return libmpeg3decoder; |
122 | } | 122 | } |
123 | 123 | ||
124 | // ### hack to get true sample count | 124 | // ### hack to get true sample count |
125 | // MediaPlayerDecoder *MediaPlayerState::libWavDecoder() { | 125 | // MediaPlayerDecoder *MediaPlayerState::libWavDecoder() { |
126 | // return libwavdecoder; | 126 | // return libwavdecoder; |
127 | // } | 127 | // } |
128 | 128 | ||
129 | void MediaPlayerState::loadPlugins() { | 129 | void MediaPlayerState::loadPlugins() { |
130 | qDebug("load plugins"); | 130 | // qDebug("load plugins"); |
131 | #ifndef QT_NO_COMPONENT | 131 | #ifndef QT_NO_COMPONENT |
132 | QValueList<MediaPlayerPlugin>::Iterator mit; | 132 | QValueList<MediaPlayerPlugin>::Iterator mit; |
133 | for ( mit = pluginList.begin(); mit != pluginList.end(); ++mit ) { | 133 | for ( mit = pluginList.begin(); mit != pluginList.end(); ++mit ) { |
134 | (*mit).iface->release(); | 134 | (*mit).iface->release(); |
135 | (*mit).library->unload(); | 135 | (*mit).library->unload(); |
136 | delete (*mit).library; | 136 | delete (*mit).library; |
137 | } | 137 | } |
138 | pluginList.clear(); | 138 | pluginList.clear(); |
139 | 139 | ||
140 | QString path = QPEApplication::qpeDir() + "/plugins/codecs"; | 140 | QString path = QPEApplication::qpeDir() + "/plugins/codecs"; |
141 | QDir dir( path, "lib*.so" ); | 141 | QDir dir( path, "lib*.so" ); |
142 | QStringList list = dir.entryList(); | 142 | QStringList list = dir.entryList(); |
143 | QStringList::Iterator it; | 143 | QStringList::Iterator it; |
144 | for ( it = list.begin(); it != list.end(); ++it ) { | 144 | for ( it = list.begin(); it != list.end(); ++it ) { |
145 | MediaPlayerPluginInterface *iface = 0; | 145 | MediaPlayerPluginInterface *iface = 0; |
146 | QLibrary *lib = new QLibrary( path + "/" + *it ); | 146 | QLibrary *lib = new QLibrary( path + "/" + *it ); |
147 | // qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); | 147 | // qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); |
148 | 148 | ||
149 | if ( lib->queryInterface( IID_MediaPlayerPlugin, (QUnknownInterface**)&iface ) == QS_OK ) { | 149 | if ( lib->queryInterface( IID_MediaPlayerPlugin, (QUnknownInterface**)&iface ) == QS_OK ) { |
150 | 150 | ||
151 | // qDebug( "loading: %s", QString( path + "/" + *it ).latin1() ); | 151 | // qDebug( "loading: %s", QString( path + "/" + *it ).latin1() ); |
152 | 152 | ||
153 | MediaPlayerPlugin plugin; | 153 | MediaPlayerPlugin plugin; |
154 | plugin.library = lib; | 154 | plugin.library = lib; |