PlayerEngineService: kill a warning in the console at shutdown (bgo#710266)
commit704679998baa2802cf32312c6fc8f4aa26f9c82a
authorAndrés G. Aragoneses <knocte@gmail.com>
Wed, 16 Oct 2013 12:32:10 +0000 (16 14:32 +0200)
committerAndrés G. Aragoneses <knocte@gmail.com>
Wed, 16 Oct 2013 12:32:10 +0000 (16 14:32 +0200)
tree90272dfe9a61cbf3dbe4f7d309ef04e1ca534f25
parent8d74cb97d9fd29cc47d628764e5205e2f3fad0dd
PlayerEngineService: kill a warning in the console at shutdown (bgo#710266)

When pausing a video and closing banshee, a NullReferenceException was
happening because the PlayerEngine was disposed before the service
PlayerEngineService, and the latter was querying the player engine
state without checking if there was any active engine at that moment
at all.

This is a partial fix for BGO#710266.
src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs