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

Method GetPacketDuration

mediaPlayer/buffer_controller.cpp:315–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 int64_t BufferController::GetPacketDuration(BUFFER_TYPE type)
316 {
317 switch (type) {
318 case BUFFER_TYPE_AUDIO:
319 return mAudioPacketQueue.GetDuration();
320
321 case BUFFER_TYPE_VIDEO:
322 return mVideoPacketQueue.GetDuration();
323
324 case BUFFER_TYPE_SUBTITLE:
325 return mSubtitlePacketQueue.GetDuration();
326
327 default:
328 AF_LOGE("error media type");
329 break;
330 }
331
332 return 0;
333 }
334
335 bool BufferController::IsPacketEmtpy(BUFFER_TYPE type)
336 {

Callers 7

GetPropertyIntMethod · 0.80
updateBufferInfoMethod · 0.80
DoCheckBufferPassMethod · 0.80
LiveTimeSyncMethod · 0.80
DecodeAudioMethod · 0.80
ReadPacketMethod · 0.80

Calls 1

GetDurationMethod · 0.45

Tested by

no test coverage detected