audio aggregator: Post QoS message when dropping audio
Post a QOS message whenever the base class needs to drop some samples.
To do this:
- Add a “qos-messages” property to each sink pad of the GstAudioAggregator base class
- When this property is enabled, emit a GST_MESSAGE_QOS, this message contains
- src: Other elements will put the element there, but you want to know which source is dropped, so I put the sink pad in there
- live: Always TRUE, it doesn’t drop if the stream isn’t live...
- running_time/stream_time/timestamp: These all correspond to the first sample to be dropped. It will also always be the start of a buffer, because the only case where it drops thing is if a buffer arrives late. They are in the segment of the sink pad (the input segment), not the output segment.
- duration: This corresponds to the number of dropped samples (but in nanoseconds)
- processed: The total number of samples successfully mixed up to this point, this doesn’t increase between QoS messages, it means that they were all dropped in the same “gap”
- dropped: The number of samples that were dropped in total. This should increase with each QoS message
Edited by Olivier Crête