close gstreamer pipeline after each track

(*maybe* addressing BPD memory leak)
This commit is contained in:
Adrian Sampson 2011-04-20 10:34:44 -07:00
parent 6c1edc792c
commit a1996472e8

View file

@ -73,6 +73,7 @@ class GstPlayer(object):
"""Callback for status updates from GStreamer."""
if message.type == gst.MESSAGE_EOS:
# file finished playing
self.player.set_state(gst.STATE_NULL)
self.playing = False
self.cached_time = None
if self.finished_callback: