Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index 5531e81..18caaad 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp | |||
@@ -84,25 +84,24 @@ void MediaPlayer::setPlaying( bool play ) { | |||
84 | if ( mediaPlayerState->paused() ) { | 84 | if ( mediaPlayerState->paused() ) { |
85 | mediaPlayerState->setPaused( FALSE ); | 85 | mediaPlayerState->setPaused( FALSE ); |
86 | return; | 86 | return; |
87 | } | 87 | } |
88 | 88 | ||
89 | const DocLnk *playListCurrent = playList->current(); | 89 | const DocLnk *playListCurrent = playList->current(); |
90 | if ( playListCurrent != NULL ) { | 90 | if ( playListCurrent != NULL ) { |
91 | currentFile = playListCurrent; | 91 | currentFile = playListCurrent; |
92 | } | 92 | } |
93 | 93 | ||
94 | xineControl->play( currentFile->file() ); | 94 | xineControl->play( currentFile->file() ); |
95 | 95 | ||
96 | xineControl->length(); | ||
97 | long seconds = mediaPlayerState->length();// | 96 | long seconds = mediaPlayerState->length();// |
98 | QString time; time.sprintf("%li:%02i", seconds/60, (int)seconds%60 ); | 97 | QString time; time.sprintf("%li:%02i", seconds/60, (int)seconds%60 ); |
99 | qDebug(time); | 98 | qDebug(time); |
100 | 99 | ||
101 | QString tickerText; | 100 | QString tickerText; |
102 | if( currentFile->file().left(4) == "http" ) | 101 | if( currentFile->file().left(4) == "http" ) |
103 | tickerText= tr( " File: " ) + currentFile->name(); | 102 | tickerText= tr( " File: " ) + currentFile->name(); |
104 | else | 103 | else |
105 | tickerText = tr( " File: " ) + currentFile->name() + tr(", Length: ") + time; | 104 | tickerText = tr( " File: " ) + currentFile->name() + tr(", Length: ") + time; |
106 | 105 | ||
107 | audioUI->setTickerText( currentFile->file( ) ); | 106 | audioUI->setTickerText( currentFile->file( ) ); |
108 | 107 | ||