Skip to content
Snippets Groups Projects
Commit b98211eb authored by Kipp Cannon's avatar Kipp Cannon
Browse files

gstlal: pipeparts: update for new appsink signals

parent 6f2ae19b
No related branches found
No related tags found
No related merge requests found
......@@ -765,7 +765,8 @@ class AppSync(object):
for elem in appsinks:
if elem in self.appsinks:
raise ValueError("duplicate appsinks %s" % repr(elem))
elem.connect("new-buffer", self.appsink_handler, False)
elem.connect("new-preroll", self.appsink_handler, False)
elem.connect("new-sample", self.appsink_handler, False)
elem.connect("eos", self.appsink_handler, True)
self.appsinks[elem] = None
......@@ -773,7 +774,8 @@ class AppSync(object):
# NOTE that max buffers must be 1 for this to work
assert "max_buffers" not in properties
elem = mkappsink(pipeline, src, max_buffers = 1, drop = drop, **properties)
elem.connect("new-buffer", self.appsink_handler, False)
elem.connect("new-preroll", self.appsink_handler, False)
elem.connect("new-sample", self.appsink_handler, False)
elem.connect("eos", self.appsink_handler, True)
self.appsinks[elem] = None
return elem
......@@ -849,7 +851,7 @@ def connect_appsink_dump_dot(pipeline, appsinks, basename, verbose = False):
for sink in appsinks:
appsink_dump_dot = AppsinkDumpDot(pipeline, len(appsinks), basename = basename, verbose = verbose)
appsink_dump_dot.handler_id = sink.connect_after("new-buffer", appsink_dump_dot.execute)
appsink_dump_dot.handler_id = sink.connect_after("new-preroll", appsink_dump_dot.execute)
def mkchecktimestamps(pipeline, src, name = None, silent = True, timestamp_fuzz = 1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment