From 00ed7e549c6edc2b4f4d4e8c26ae7a72e4af8e26 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 2 Feb 2016 22:13:58 +0100 Subject: [PATCH] gst1: Length will always be zero, leave it out --- mopidy/audio/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mopidy/audio/utils.py b/mopidy/audio/utils.py index 774de53d..5f42733d 100644 --- a/mopidy/audio/utils.py +++ b/mopidy/audio/utils.py @@ -19,8 +19,7 @@ def create_buffer(data, capabilites=None, timestamp=None, duration=None): ``capabilites`` argument is no longer in use """ if not data: - raise ValueError( - 'Cannot create buffer without data: length=%d' % len(data)) + raise ValueError('Cannot create buffer without data') buffer_ = Gst.Buffer.new_wrapped(data) if timestamp is not None: buffer_.pts = timestamp