Permalink
Browse files

Added: don't load the engine if AE->CanInit() fails, this allows us t…

…o fall back to alsa when pulseaudio isn't running
  • Loading branch information...
1 parent 615af13 commit ad7817fd49378376715616d0e3f1b2bc6546364c bobo1on1 committed Oct 8, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/cores/AudioEngine/AEFactory.cpp
@@ -103,6 +103,12 @@ bool CAEFactory::LoadEngine(enum AEEngine engine)
return false;
}
+ if (AE && !AE->CanInit())
+ {
+ delete AE;
+ AE = NULL;
+ }
+
return AE != NULL;
}

0 comments on commit ad7817f

Please sign in to comment.