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

Method GetPacketSize

mediaPlayer/buffer_controller.cpp:375–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373 }
374
375 int BufferController::GetPacketSize(BUFFER_TYPE type)
376 {
377 int size = 0;
378
379 if (type & BUFFER_TYPE_AUDIO) {
380 size += mAudioPacketQueue.GetSize();
381 }
382
383 if (type & BUFFER_TYPE_VIDEO) {
384 size += mVideoPacketQueue.GetSize();
385 }
386
387 if (type & BUFFER_TYPE_SUBTITLE) {
388 size += mSubtitlePacketQueue.GetSize();
389 }
390
391 return size;
392 }
393
394 void BufferController::ClearPacket(BUFFER_TYPE type)
395 {

Callers 6

DoCheckBufferPassMethod · 0.80
LiveTimeSyncMethod · 0.80
doRenderMethod · 0.80
checkEOSAudioMethod · 0.80
checkEOSVideoMethod · 0.80

Calls 1

GetSizeMethod · 0.80

Tested by

no test coverage detected