I have a rather unusual topology where, by design, some of the sinks do not request samples when the session starts. A problem arises when data is teed. What I have found is the media session is buffering samples anticipating the sink to start requests. Instead those samples should be dropped since the sink may not request a sample for quite some time and the buffered data is no longer relevant.
Is there a way to configure the session to buffer only the last, most recent sample? If not, what are my options? I'd rather not have to write my own MediaSession object, unless that is the only solution.
Furthermore, it is not an option to drop the samples in the sink. There are some very computationally expensive transforms in the topology and samples should only be processed if necessary.