MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / ClearPacketAfterTimePosition

Method ClearPacketAfterTimePosition

mediaPlayer/buffer_controller.cpp:201–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 void BufferController::ClearPacketAfterTimePosition(BUFFER_TYPE type, int64_t pts)
202 {
203 if (type & BUFFER_TYPE_AUDIO) {
204 mAudioPacketQueue.ClearPacketAfterTimePosition(pts);
205 }
206
207 if (type & BUFFER_TYPE_VIDEO) {
208 mVideoPacketQueue.ClearPacketAfterTimePosition(pts);
209 }
210
211 if (type & BUFFER_TYPE_SUBTITLE) {
212 mSubtitlePacketQueue.ClearPacketAfterTimePosition(pts);
213 }
214 }
215
216 int64_t BufferController::GetPacketLastKeyTimePos(BUFFER_TYPE type)
217 {

Callers 1

SwitchVideoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected