audio: Remove unused 'capabilities' argument
This commit is contained in:
parent
cd4e3fa37b
commit
f3c31538e6
@ -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:
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user