TMediaSampleSource::PeekFrontAndBack

Simultaneously peeks at the next (the frontmost) and last samples in the queue without removing them.