| 744 | } |
| 745 | |
| 746 | static Frame *frame_queue_peek_writable(FrameQueue *f) |
| 747 | { |
| 748 | /* wait until we have space to put a new frame */ |
| 749 | SDL_LockMutex(f->mutex); |
| 750 | while (f->size >= f->max_size && |
| 751 | !f->pktq->abort_request) { |
| 752 | SDL_CondWait(f->cond, f->mutex); |
| 753 | } |
| 754 | SDL_UnlockMutex(f->mutex); |
| 755 | |
| 756 | if (f->pktq->abort_request) |
| 757 | return NULL; |
| 758 | |
| 759 | return &f->queue[f->windex]; |
| 760 | } |
| 761 | |
| 762 | static Frame *frame_queue_peek_readable(FrameQueue *f) |
| 763 | { |
no outgoing calls
no test coverage detected