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

Method IsPacketEmtpy

mediaPlayer/buffer_controller.cpp:335–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333 }
334
335 bool BufferController::IsPacketEmtpy(BUFFER_TYPE type)
336 {
337 switch (type) {
338 case BUFFER_TYPE_AUDIO:
339 return mAudioPacketQueue.GetSize() == 0;
340
341 case BUFFER_TYPE_VIDEO:
342 return mVideoPacketQueue.GetSize() == 0;
343
344 case BUFFER_TYPE_SUBTITLE:
345 return mSubtitlePacketQueue.GetSize() == 0;
346
347 default:
348 AF_LOGE("error media type");
349 break;
350 }
351
352 return true;
353 }
354
355 std::unique_ptr<IAFPacket> BufferController::getPacket(BUFFER_TYPE type)
356 {

Callers 2

SetUpAudioPathMethod · 0.80
SetUpVideoPathMethod · 0.80

Calls 1

GetSizeMethod · 0.80

Tested by

no test coverage detected