Merge pull request #1735 from kingosticks/fix/change-track-sample-rates

audio: removed unused fakesink. (Fixes #1528)
This commit is contained in:
Nick Steel 2019-01-30 10:31:07 +00:00 committed by GitHub
commit 6f615d30f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -5,6 +5,14 @@ Changelog
This changelog is used to track all major changes to Mopidy. This changelog is used to track all major changes to Mopidy.
v2.2.3 (UNRELEASED)
===================
Bug fix release.
- Audio: Fix switching between tracks with different sample rates. (Fixes:
:issue:`1528`, PR: :issue:`1735`)
v2.2.2 (2018-12-29) v2.2.2 (2018-12-29)
=================== ===================

View File

@ -114,12 +114,6 @@ class _Outputs(Gst.Bin):
ghost_pad = Gst.GhostPad.new('sink', self._tee.get_static_pad('sink')) ghost_pad = Gst.GhostPad.new('sink', self._tee.get_static_pad('sink'))
self.add_pad(ghost_pad) self.add_pad(ghost_pad)
# Add an always connected fakesink which respects the clock so the tee
# doesn't fail even if we don't have any outputs.
fakesink = Gst.ElementFactory.make('fakesink')
fakesink.set_property('sync', True)
self._add(fakesink)
def add_output(self, description): def add_output(self, description):
# XXX This only works for pipelines not in use until #790 gets done. # XXX This only works for pipelines not in use until #790 gets done.
try: try: