mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
830d1595b9
* Expose an actual constructor from caps * Error out in overrides for code that was using the "manual allocation" pattern which only worked by chance. Direct the script writer to the new_from_caps constructor instead. Fixes https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/47 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1571>
16 lines
386 B
Python
16 lines
386 B
Python
from ..module import get_introspection_module
|
|
|
|
import gi
|
|
gi.require_version('Gst', '1.0')
|
|
|
|
from gi.repository import Gst # noqa
|
|
|
|
GstAudio = get_introspection_module('GstAudio')
|
|
__all__ = []
|
|
|
|
|
|
def __audio_info_from_caps(*args):
|
|
raise NotImplementedError('AudioInfo.from_caps was removed, use AudioInfo.new_from_caps instead')
|
|
|
|
|
|
GstAudio.AudioInfo.from_caps = __audio_info_from_caps
|