mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
close gstreamer pipeline after each track
(*maybe* addressing BPD memory leak)
This commit is contained in:
parent
6c1edc792c
commit
a1996472e8
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue