audio: Remove unused 'capabilities' argument

This commit is contained in:
Stein Magnus Jodal 2016-02-14 22:39:31 +01:00
parent cd4e3fa37b
commit f3c31538e6
2 changed files with 6 additions and 6 deletions

View File

@ -160,9 +160,9 @@ Audio
If your Mopidy backend uses ``set_appsrc()``, please refer to GStreamer
documentation for details on the new caps string format.
- **Deprecated:** :func:`mopidy.audio.utils.create_buffer`'s ``capabilities``
argument is no longer in use and will be removed in the future. As far as we
know, this is only used by Mopidy-Spotify.
- **Breaking:** :func:`mopidy.audio.utils.create_buffer`'s ``capabilities``
argument is no longer in use and has been removed. As far as we know, this
was only used by Mopidy-Spotify.
- Duplicate seek events getting to ``appsrc`` based backends is now fixed. This
should prevent seeking in Mopidy-Spotify from glitching. (Fixes:

View File

@ -10,13 +10,13 @@ def calculate_duration(num_samples, sample_rate):
return Gst.util_uint64_scale(num_samples, Gst.SECOND, sample_rate)
def create_buffer(data, capabilites=None, timestamp=None, duration=None):
def create_buffer(data, timestamp=None, duration=None):
"""Create a new GStreamer buffer based on provided data.
Mainly intended to keep gst imports out of non-audio modules.
.. versionchanged:: 1.2
``capabilites`` argument is no longer in use
.. versionchanged:: 2.0
``capabilites`` argument was removed.
"""
if not data:
raise ValueError('Cannot create buffer without data')