summaryrefslogtreecommitdiff
authorzecke <zecke>2004-09-23 22:27:45 (UTC)
committer zecke <zecke>2004-09-23 22:27:45 (UTC)
commitb33878c73018d91101e828101e632c96d39c1381 (patch) (side-by-side diff)
treec2606b2b9941e3a80649415207bd2b9be27ba998
parent97ab73d99688443d02086b4f00d1de7c81faa3c7 (diff)
downloadopie-b33878c73018d91101e828101e632c96d39c1381.zip
opie-b33878c73018d91101e828101e632c96d39c1381.tar.gz
opie-b33878c73018d91101e828101e632c96d39c1381.tar.bz2
If you close the Audio-/VideoWidget and the stream was paused
it didn't play on request. Remove the paused state of MediaPlayerState
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
index ba4e11a..44bc46b 100644
--- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
@@ -170,89 +170,90 @@ void MediaPlayerState::setPosition( long p ) {
}
curPosition = p;
emit positionChanged(p);
}
void MediaPlayerState::updatePosition( long p ){
if ( curPosition == p ) {
return;
}
curPosition = p;
emit positionUpdated(p);
}
void MediaPlayerState::setVideoGamma( int v ){
if ( videoGamma == v ) {
return;
}
videoGamma = v;
emit videoGammaChanged( v );
}
void MediaPlayerState::setLength( long l ) {
if ( curLength == l ) {
return;
}
curLength = l;
emit lengthChanged(l);
}
void MediaPlayerState::setDisplayType( DisplayType displayType )
{
if ( m_displayType == displayType )
return;
m_displayType = displayType;
emit displayTypeChanged( m_displayType );
}
void MediaPlayerState::setPrev(){
emit prev();
}
void MediaPlayerState::setNext() {
emit next();
}
void MediaPlayerState::setList() {
setPlaying( FALSE );
+ paused = false;
setDisplayType( MediaSelection );
}
void MediaPlayerState::setVideo() {
setDisplayType( Video );
}
void MediaPlayerState::setAudio() {
setDisplayType( Audio );
}
void MediaPlayerState::toggleFullscreen() {
setFullscreen( !fullscreen );
}
void MediaPlayerState::toggleScaled() {
setScaled( !scaled);
}
void MediaPlayerState::toggleLooping() {
setLooping( !looping);
}
void MediaPlayerState::toggleShuffled() {
setShuffled( !shuffled);
}
void MediaPlayerState::togglePaused() {
setPaused( !paused);
}
void MediaPlayerState::togglePlaying() {
setPlaying( !playing);
}
void MediaPlayerState::toggleBlank() {
setBlanked( !blanked);
}