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

Method GetOnePacketDuration

mediaPlayer/buffer_controller.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61 int64_t BufferController::GetOnePacketDuration(BUFFER_TYPE type) {
62 switch (type) {
63 case BUFFER_TYPE_AUDIO:
64 return mAudioPacketQueue.GetOnePacketDuration();
65 case BUFFER_TYPE_VIDEO:
66 return mVideoPacketQueue.GetOnePacketDuration();
67 case BUFFER_TYPE_SUBTITLE:
68 break;
69 default:
70 AF_LOGE("error media type");
71 break;
72 }
73 return INT64_MIN;
74 }
75
76
77 int64_t BufferController::GetPacketPts(BUFFER_TYPE type)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected