| 199 | } |
| 200 | |
| 201 | void BufferController::ClearPacketAfterTimePosition(BUFFER_TYPE type, int64_t pts) |
| 202 | { |
| 203 | if (type & BUFFER_TYPE_AUDIO) { |
| 204 | mAudioPacketQueue.ClearPacketAfterTimePosition(pts); |
| 205 | } |
| 206 | |
| 207 | if (type & BUFFER_TYPE_VIDEO) { |
| 208 | mVideoPacketQueue.ClearPacketAfterTimePosition(pts); |
| 209 | } |
| 210 | |
| 211 | if (type & BUFFER_TYPE_SUBTITLE) { |
| 212 | mSubtitlePacketQueue.ClearPacketAfterTimePosition(pts); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | int64_t BufferController::GetPacketLastKeyTimePos(BUFFER_TYPE type) |
| 217 | { |