queue: leaky feature request
Currently queue has 3 leaky modes but it seems that none of them solve my problem
Here is an example: we have a queue between a source and an encoder queue is set to max-size-bytes=128000 (other max limits to 0) the source sends 1024 bytes for each buffer if the source send data a little too fast than the encoder speed the queue buffer will reach max-size-bytes now i would like that source buffers are discarded until the queue size is back to 0 (Zero) because i need to have an empty queue again like at pipeline start. none of the leaky mode allows this. leaky=1 or leaky=2 only discard 1024 bytes until there is again space for 1024 bytes inside the queue, they don't wait for the queue to be empty
would it be possible to create a leaky=3 that behave like this? (discard until queue is empty)
i'm a commandline user so no programmatically solutions are good for me