summaryrefslogtreecommitdiff
authorzecke <zecke>2004-09-23 22:27:45 (UTC)
committer zecke <zecke>2004-09-23 22:27:45 (UTC)
commitb33878c73018d91101e828101e632c96d39c1381 (patch) (unidiff)
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) (ignore 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
@@ -194,48 +194,49 @@ void MediaPlayerState::setLength( long l ) {
194 } 194 }
195 curLength = l; 195 curLength = l;
196 emit lengthChanged(l); 196 emit lengthChanged(l);
197} 197}
198 198
199void MediaPlayerState::setDisplayType( DisplayType displayType ) 199void MediaPlayerState::setDisplayType( DisplayType displayType )
200{ 200{
201 if ( m_displayType == displayType ) 201 if ( m_displayType == displayType )
202 return; 202 return;
203 203
204 m_displayType = displayType; 204 m_displayType = displayType;
205 emit displayTypeChanged( m_displayType ); 205 emit displayTypeChanged( m_displayType );
206} 206}
207 207
208void MediaPlayerState::setPrev(){ 208void MediaPlayerState::setPrev(){
209 emit prev(); 209 emit prev();
210} 210}
211 211
212void MediaPlayerState::setNext() { 212void MediaPlayerState::setNext() {
213 emit next(); 213 emit next();
214} 214}
215 215
216void MediaPlayerState::setList() { 216void MediaPlayerState::setList() {
217 setPlaying( FALSE ); 217 setPlaying( FALSE );
218 paused = false;
218 setDisplayType( MediaSelection ); 219 setDisplayType( MediaSelection );
219} 220}
220 221
221void MediaPlayerState::setVideo() { 222void MediaPlayerState::setVideo() {
222 setDisplayType( Video ); 223 setDisplayType( Video );
223} 224}
224 225
225void MediaPlayerState::setAudio() { 226void MediaPlayerState::setAudio() {
226 setDisplayType( Audio ); 227 setDisplayType( Audio );
227} 228}
228 229
229void MediaPlayerState::toggleFullscreen() { 230void MediaPlayerState::toggleFullscreen() {
230 setFullscreen( !fullscreen ); 231 setFullscreen( !fullscreen );
231} 232}
232 233
233void MediaPlayerState::toggleScaled() { 234void MediaPlayerState::toggleScaled() {
234 setScaled( !scaled); 235 setScaled( !scaled);
235} 236}
236 237
237void MediaPlayerState::toggleLooping() { 238void MediaPlayerState::toggleLooping() {
238 setLooping( !looping); 239 setLooping( !looping);
239} 240}
240 241
241void MediaPlayerState::toggleShuffled() { 242void MediaPlayerState::toggleShuffled() {