summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp
index 00cfa33..664ec65 100644
--- a/noncore/multimedia/opieplayer2/lib.cpp
+++ b/noncore/multimedia/opieplayer2/lib.cpp
@@ -186,49 +186,49 @@ int Lib::majorVersion() {
186int Lib::minorVersion() { 186int Lib::minorVersion() {
187 int major, minor, sub; 187 int major, minor, sub;
188 xine_get_version ( &major, &minor, &sub ); 188 xine_get_version ( &major, &minor, &sub );
189 return minor; 189 return minor;
190} 190}
191 191
192int Lib::subVersion() { 192int Lib::subVersion() {
193 int major, minor, sub; 193 int major, minor, sub;
194 xine_get_version ( &major, &minor, &sub ); 194 xine_get_version ( &major, &minor, &sub );
195 return sub; 195 return sub;
196} 196}
197 197
198int Lib::play( const QString& fileName, int startPos, int start_time ) { 198int Lib::play( const QString& fileName, int startPos, int start_time ) {
199 assert( m_initialized ); 199 assert( m_initialized );
200 // FIXME actually a hack imho. Should not be needed to dispose the whole stream 200 // FIXME actually a hack imho. Should not be needed to dispose the whole stream
201 // but without we get wrong media length reads from libxine for the second media 201 // but without we get wrong media length reads from libxine for the second media
202 //xine_dispose ( m_stream ); 202 //xine_dispose ( m_stream );
203 203
204 QString str = fileName.stripWhiteSpace(); 204 QString str = fileName.stripWhiteSpace();
205 205
206 //m_stream = xine_stream_new (m_xine, m_audioOutput, m_videoOutput ); 206 //m_stream = xine_stream_new (m_xine, m_audioOutput, m_videoOutput );
207 //m_queue = xine_event_new_queue (m_stream); 207 //m_queue = xine_event_new_queue (m_stream);
208 //xine_event_create_listener_thread (m_queue, xine_event_handler, this); 208 //xine_event_create_listener_thread (m_queue, xine_event_handler, this);
209 209
210 if ( !xine_open( m_stream, QFile::encodeName(str.utf8() ).data() ) ) { 210 if ( !xine_open( m_stream, str.utf8().data() ) ) {
211 return 0; 211 return 0;
212 } 212 }
213 return xine_play( m_stream, startPos, start_time); 213 return xine_play( m_stream, startPos, start_time);
214} 214}
215 215
216void Lib::stop() { 216void Lib::stop() {
217 assert( m_initialized ); 217 assert( m_initialized );
218 218
219 qDebug("<<<<<<<< STOP IN LIB TRIGGERED >>>>>>>"); 219 qDebug("<<<<<<<< STOP IN LIB TRIGGERED >>>>>>>");
220 xine_stop( m_stream ); 220 xine_stop( m_stream );
221} 221}
222 222
223void Lib::pause( bool toggle ) { 223void Lib::pause( bool toggle ) {
224 assert( m_initialized ); 224 assert( m_initialized );
225 225
226 xine_set_param( m_stream, XINE_PARAM_SPEED, toggle ? XINE_SPEED_PAUSE : XINE_SPEED_NORMAL ); 226 xine_set_param( m_stream, XINE_PARAM_SPEED, toggle ? XINE_SPEED_PAUSE : XINE_SPEED_NORMAL );
227} 227}
228 228
229int Lib::speed() const { 229int Lib::speed() const {
230 assert( m_initialized ); 230 assert( m_initialized );
231 231
232 return xine_get_param ( m_stream, XINE_PARAM_SPEED ); 232 return xine_get_param ( m_stream, XINE_PARAM_SPEED );
233} 233}
234 234