summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinecontrol.cpp
Side-by-side diff
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp
index eba837e..8b9413f 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.cpp
+++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp
@@ -51,2 +51,3 @@ XineControl::XineControl( QObject *parent, const char *name )
connect( mediaPlayerState, SIGNAL( positionChanged( long ) ), this, SLOT( seekTo( long ) ) );
+ connect( libXine, SIGNAL( stopped() ), this, SLOT( nextMedia() ) );
}
@@ -77,3 +78,3 @@ void XineControl::play( const QString& fileName ) {
// mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) );
- mediaPlayerState->setIsStreaming( libXine->isSeekable() );
+ mediaPlayerState->setIsStreaming( !libXine->isSeekable() );
// which gui (video / audio)
@@ -84,5 +85,9 @@ void XineControl::play( const QString& fileName ) {
+void XineControl::nextMedia() {
+ mediaPlayerState->setNext();
+}
+
void XineControl::stop( bool isSet ) {
if ( !isSet) {
- libXine->stop();
+ libXine->stop( );
mediaPlayerState->setList();