diff --git a/docs/changelog.rst b/docs/changelog.rst index f48ff38a..a251520c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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: diff --git a/mopidy/audio/utils.py b/mopidy/audio/utils.py index 8bc5279d..2027485a 100644 --- a/mopidy/audio/utils.py +++ b/mopidy/audio/utils.py @@ -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')