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

Method ClearPacketBeforeTimePos

mediaPlayer/buffer_controller.cpp:182–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 int64_t BufferController::ClearPacketBeforeTimePos(BUFFER_TYPE type, int64_t pts)
183 {
184 int64_t drop = 0;
185
186 if (type & BUFFER_TYPE_AUDIO) {
187 drop += mAudioPacketQueue.ClearPacketBeforeTimePos(pts);
188 }
189
190 if (type & BUFFER_TYPE_VIDEO) {
191 drop += mVideoPacketQueue.ClearPacketBeforeTimePos(pts);
192 }
193
194 if (type & BUFFER_TYPE_SUBTITLE) {
195 drop += mSubtitlePacketQueue.ClearPacketBeforeTimePos(pts);
196 }
197
198 return drop;
199 }
200
201 void BufferController::ClearPacketAfterTimePosition(BUFFER_TYPE type, int64_t pts)
202 {

Callers 4

ProcessSeekToMsgMethod · 0.45
DoCheckBufferPassMethod · 0.45
LiveTimeSyncMethod · 0.45
SeekInCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected