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

Method Rewind

mediaPlayer/buffer_controller.cpp:148–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 void BufferController::Rewind(BUFFER_TYPE type)
149 {
150 if (type & BUFFER_TYPE_AUDIO) {
151 mAudioPacketQueue.Rewind();
152 }
153
154 if (type & BUFFER_TYPE_VIDEO) {
155 mVideoPacketQueue.Rewind();
156 }
157
158 if (type & BUFFER_TYPE_SUBTITLE) {
159 mSubtitlePacketQueue.Rewind();
160 }
161 }
162
163 int64_t BufferController::ClearPacketBeforePts(BUFFER_TYPE type, int64_t pts)
164 {

Callers 1

SeekInCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected