gst1: Replace Structure(...) with Stricture.new_empty(...)

This commit is contained in:
Stein Magnus Jodal 2015-12-04 00:13:56 +01:00
parent 7a3d5ff13c
commit 780c493af3

View File

@ -105,7 +105,7 @@ def _pad_added(element, pad, pipeline):
pad.link(sink.get_static_pad('sink'))
if pad.query_caps().is_subset(Gst.Caps.from_string('audio/x-raw')):
struct = Gst.Structure('have-audio')
struct = Gst.Structure.new_empty('have-audio')
element.get_bus().post(Gst.Message.new_application(element, struct))