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

Method GetPacketLastPTS

mediaPlayer/buffer_controller.cpp:236–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 }
235
236 int64_t BufferController::GetPacketLastPTS(BUFFER_TYPE type)
237 {
238 switch (type) {
239 case BUFFER_TYPE_AUDIO:
240 return mAudioPacketQueue.GetLastPTS();
241
242 case BUFFER_TYPE_VIDEO:
243 return mVideoPacketQueue.GetLastPTS();
244
245 case BUFFER_TYPE_SUBTITLE:
246 return mSubtitlePacketQueue.GetLastPTS();
247
248 default:
249 AF_LOGE("error media type");
250 break;
251 }
252
253 return 0;
254 }
255
256 int64_t BufferController::GetPacketLastTimePos(BUFFER_TYPE type)
257 {

Callers 5

GetPropertyIntMethod · 0.80
ProcessVideoLoopMethod · 0.80
updateBufferInfoMethod · 0.80
DoCheckBufferPassMethod · 0.80

Calls 1

GetLastPTSMethod · 0.80

Tested by

no test coverage detected