| 373 | } |
| 374 | |
| 375 | int BufferController::GetPacketSize(BUFFER_TYPE type) |
| 376 | { |
| 377 | int size = 0; |
| 378 | |
| 379 | if (type & BUFFER_TYPE_AUDIO) { |
| 380 | size += mAudioPacketQueue.GetSize(); |
| 381 | } |
| 382 | |
| 383 | if (type & BUFFER_TYPE_VIDEO) { |
| 384 | size += mVideoPacketQueue.GetSize(); |
| 385 | } |
| 386 | |
| 387 | if (type & BUFFER_TYPE_SUBTITLE) { |
| 388 | size += mSubtitlePacketQueue.GetSize(); |
| 389 | } |
| 390 | |
| 391 | return size; |
| 392 | } |
| 393 | |
| 394 | void BufferController::ClearPacket(BUFFER_TYPE type) |
| 395 | { |
no test coverage detected