Buffer management/processing in Deepstream Pipeline

I have a question about how the elements in a pipeline process buffers. Do the elements process a buffer, push it downstream and then continue working on the next buffer or does a buffer have to processed by all the elements in the pipeline before the next buffer get picked up for processing in the pipeline?


nvinfer / streamMux / DeMux
you can refer to this part, from decoder output through streammux then nvinfer, how the buffer flows and processed, hope you can get some clue.