我正在尝试从 GstBaseSink 派生的 GstXvImageSink 访问“last-sample”属性。我越来越:
TypeError:“GstXvImageSink”类型的对象没有属性“last-sample”
有没有一种特殊的方法可以从 pygtk 中的基类获取属性,或者这个属性是否以某种方式隐藏?
代码:
def take_snapshoot(self):
sample = self.__snapshot_source_video_sink.get_property("last-sample")