From c0913ce69ba56f01e0b197f6c7a4776080da35a0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 9 Oct 2014 13:29:39 -0500 Subject: 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 --- kaboodle/engine.cpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'kaboodle/engine.cpp') 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; } } } -- cgit v1.2.1