All pastes #468890 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-03 13:01 UTC
rendered paste body
def myprobe(pad, data):
    if isinstance(data, gst.Buffer):
        pad.log("BUFFER time:%s / duration:%s" % (gst.TIME_ARGS(data.timestamp),
                                                  gst.TIME_ARGS(data.duration)))
    else:
        pad.log("EVENT %s" % data.type)
    return True