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

Method ClearPacketBeforePts

mediaPlayer/buffer_controller.cpp:163–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 int64_t BufferController::ClearPacketBeforePts(BUFFER_TYPE type, int64_t pts)
164 {
165 int64_t drop = 0;
166
167 if (type & BUFFER_TYPE_AUDIO) {
168 drop += mAudioPacketQueue.ClearPacketBeforePTS(pts);
169 }
170
171 if (type & BUFFER_TYPE_VIDEO) {
172 drop += mVideoPacketQueue.ClearPacketBeforePTS(pts);
173 }
174
175 if (type & BUFFER_TYPE_SUBTITLE) {
176 drop += mSubtitlePacketQueue.ClearPacketBeforePTS(pts);
177 }
178
179 return drop;
180 }
181
182 int64_t BufferController::ClearPacketBeforeTimePos(BUFFER_TYPE type, int64_t pts)
183 {

Callers 2

RenderVideoMethod · 0.80
RenderSubtitleMethod · 0.80

Calls 1

ClearPacketBeforePTSMethod · 0.80

Tested by

no test coverage detected