def handoff(s, b, p): s.message_full( Gst.MessageType.ERROR, Gst.stream_error_quark(), Gst.StreamError.FAILED, msg, msg, "", "", 0, )