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

Method GetPacketPts

mediaPlayer/buffer_controller.cpp:77–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77 int64_t BufferController::GetPacketPts(BUFFER_TYPE type)
78 {
79 switch (type) {
80 case BUFFER_TYPE_AUDIO:
81 return mAudioPacketQueue.GetPts();
82
83 case BUFFER_TYPE_VIDEO:
84 return mVideoPacketQueue.GetPts();
85
86 case BUFFER_TYPE_SUBTITLE:
87 return mSubtitlePacketQueue.GetPts();
88
89 default:
90 AF_LOGE("error media type");
91 break;
92 }
93
94 return INT64_MIN;
95 }
96
97 int64_t BufferController::GetFirstKeyPTS(BUFFER_TYPE type, int64_t pts)
98 {

Callers 6

GetPropertyIntMethod · 0.80
updateBufferInfoMethod · 0.80
DoCheckBufferPassMethod · 0.80
LiveTimeSyncMethod · 0.80
RenderSubtitleMethod · 0.80

Calls 1

GetPtsMethod · 0.80

Tested by

no test coverage detected