| 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 | { |
no test coverage detected