/usr/share/pyshared/quodlibet/plugins/gstelement.py is in exfalso 3.0.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # Copyright 2012 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
class GStreamerPlugin(object):
"""GStreamer Plugins define an element that gets inserted into the
GStreamer pipeline before the audio sink and after the playbin.
The method setup_element should return a new element instance or None:
self.setup_element()
One optional method can be implemented:
self.update_element(element)
update_element should apply all settings and will be called after
queue_update or on pipeline creation etc.
All plugin elements will be sorted by their priority attribute
(higher priority elements come first)
To notify setting changes, call queue_update.
"""
_handler = None
priority = 0
@classmethod
def setup_element(cls):
"""Return a new element instance or None"""
return None
@classmethod
def update_element(cls, element):
"""Apply settings to the instance"""
pass
@classmethod
def queue_update(cls):
"""Call if you want to update settings"""
cls._handler._queue_update(cls)
|