Try event harder to tear down gst correctly
This commit is contained in:
parent
8ffa81f7a9
commit
5639c03ea7
@ -47,7 +47,7 @@ class GStreamerPlaybackController(BasePlaybackController):
|
||||
|
||||
self.bin.set_property("video-sink", sink)
|
||||
self.bus.add_signal_watch()
|
||||
self.bus.connect('message', self._message)
|
||||
self.bus_id = self.bus.connect('message', self._message)
|
||||
|
||||
self.stop()
|
||||
|
||||
@ -126,6 +126,7 @@ class GStreamerPlaybackController(BasePlaybackController):
|
||||
bin, self.bin = self.bin, None
|
||||
bus, self.bus = self.bus, None
|
||||
|
||||
bus.disconnect(self.bus_id)
|
||||
bus.remove_signal_watch()
|
||||
bin.get_state(-1)
|
||||
bin.set_state(gst.STATE_NULL)
|
||||
|
||||
@ -662,6 +662,7 @@ class BasePlaybackControllerTest(object):
|
||||
tracks = self.backend.current_playlist.playlist.tracks
|
||||
self.assert_(self.tracks[0] not in tracks)
|
||||
|
||||
@populate_playlist
|
||||
def test_previous_track_with_consume(self):
|
||||
self.playback.consume = True
|
||||
self.playback.play()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user