Block Destruction
Regardless of type, all blocks are destroyed with the same function:
NvSciError
NvSciStreamBlockDelete(
NvSciStreamBlock const block
)
When called, the block handle immediately becomes invalid, making it an error to use in any function call unless it is reused for a new block. Any blocks connected to this one is informed that the stream has disconnected, if they have not already, so that they may do an orderly cleanup. (It is not possible to connect a new block in place of a destroyed one.) Any resources associated with the block are scheduled for deletion, although this may not happen immediately if they are still in use by some part of the pipeline. If there is an NvSciEventNotifier bound to the block, it is unbound.