我试图从GstXvImageSink访问“last sample”属性,它是从gstbaseink派生的。 我得到了:
TypeError: object of type 'GstXvImageSink' does not have property 'last-sample'
在pygtk中有没有一种特殊的方法可以从基类中获取属性,或者这个属性是否被隐藏了?在
代码:
def take_snapshoot(self):
sample = self.__snapshot_source_video_sink.get_property("last-sample")
我的错。我正在使用gstreamer0.1,我正在阅读gstreamer1.0的文档 所有引用到GstBuffer的东西现在都是GstSample了。 在http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-porting-1.0.html之后
所以在我的例子中,答案是使用:
相关问题 更多 >
编程相关推荐