GStreamerSharp: PlayerEngine: avoid spurious *Stream events
commit4c4bef1a128e0262a5ca7cf3a98883be74da7d05
authorAndrés G. Aragoneses <knocte@gmail.com>
Fri, 24 Jan 2014 15:28:09 +0000 (24 16:28 +0100)
committerAndrés G. Aragoneses <knocte@gmail.com>
Fri, 24 Jan 2014 15:28:09 +0000 (24 16:28 +0100)
treed03a2667991691d4f281ef932844c1ddbb4175a9
parenta40b3d3061496aacfcbce84f3fbf64feeee10ba8
GStreamerSharp: PlayerEngine: avoid spurious *Stream events

The managed backend wasn't checking the player state before sending
{End|Start}OfStream events at GStreamer's StreamStart signal, like
the native backend was doing. This was making the MediaEngineTests
fail for this backend.

With this, the tests now pass (there's only a TearDown failure left
which is unrelated to this).

(Note: the player states to check recently had to change in the
native backend [1], so we accommodate the managed backend here
too, accordingly.)

https://git.gnome.org/browse/banshee/commit/?id=6c890659b766879e0bbd08e6ea29d836b9c3281c
src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs