summaryrefslogtreecommitdiffstats
path: root/kaboodle/engine.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-09 13:29:39 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-09 13:29:39 -0500
commitc0913ce69ba56f01e0b197f6c7a4776080da35a0 (patch)
treee15a785a8ee00f8d2c0c61fefd543cf1d82de45b /kaboodle/engine.cpp
parent0ecfaa944652fa9b7a632e6135741c4b9f473a20 (diff)
downloadtdemultimedia-c0913ce69ba56f01e0b197f6c7a4776080da35a0.tar.gz
tdemultimedia-c0913ce69ba56f01e0b197f6c7a4776080da35a0.zip
Fix artsd exiting on Xine-generated Xorg errors
This relates to Bug 2150 Fix Kaboodle not playing newly loaded videos This relates to Bug 1905
Diffstat (limited to 'kaboodle/engine.cpp')
-rw-r--r--kaboodle/engine.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/kaboodle/engine.cpp b/kaboodle/engine.cpp
index a53989d2..9008dab0 100644
--- a/kaboodle/engine.cpp
+++ b/kaboodle/engine.cpp
@@ -109,20 +109,18 @@ bool Kaboodle::Engine::reload(void)
void Kaboodle::Engine::play()
{
- if(d->playobj)
- {
- switch(d->playobj->state())
- {
- case Arts::posIdle:
- if(needReload)
- reload();
- d->playobj->play();
- break;
- case Arts::posPaused:
- d->playobj->play();
- break;
- default:
- break;
+ if(d->playobj) {
+ switch(d->playobj->state()) {
+ case Arts::posIdle:
+ if(needReload)
+ reload();
+ d->playobj->play();
+ break;
+ case Arts::posPaused:
+ d->playobj->play();
+ break;
+ default:
+ break;
}
}
}