appsink: add max-time and max-bytes limits support
This MR adds max-time
and max-bytes
properties to appsink
, similarly to other queue-based elements and symmetrically to appsrc
.
For that, there was some refactoring to extract buffering level calculations into a common utility, which is then reused by both appsink
and appsrc
.