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

Method ClearPacket

mediaPlayer/buffer_controller.cpp:394–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392 }
393
394 void BufferController::ClearPacket(BUFFER_TYPE type)
395 {
396 if (type & BUFFER_TYPE_AUDIO) {
397 mAudioPacketQueue.ClearQueue();
398 }
399
400 if (type & BUFFER_TYPE_VIDEO) {
401 mVideoPacketQueue.ClearQueue();
402 }
403
404 if (type & BUFFER_TYPE_SUBTITLE) {
405 mSubtitlePacketQueue.ClearQueue();
406 }
407 }
408 void BufferController::SetMaxBackwardDuration(BUFFER_TYPE type, uint64_t duration)
409 {
410 if (type & BUFFER_TYPE_AUDIO) {

Callers 7

ProcessSeekToMsgMethod · 0.80
switchAudioMethod · 0.80
switchSubTitleMethod · 0.80
StopMethod · 0.80
closeAudioMethod · 0.80
closeVideoMethod · 0.80
playCompletedMethod · 0.80

Calls 1

ClearQueueMethod · 0.80

Tested by

no test coverage detected