| 786 | } |
| 787 | |
| 788 | static void frame_queue_next(FrameQueue *f) |
| 789 | { |
| 790 | if (f->keep_last && !f->rindex_shown) { |
| 791 | f->rindex_shown = 1; |
| 792 | return; |
| 793 | } |
| 794 | frame_queue_unref_item(&f->queue[f->rindex]); |
| 795 | if (++f->rindex == f->max_size) |
| 796 | f->rindex = 0; |
| 797 | SDL_LockMutex(f->mutex); |
| 798 | f->size--; |
| 799 | SDL_CondSignal(f->cond); |
| 800 | SDL_UnlockMutex(f->mutex); |
| 801 | } |
| 802 | |
| 803 | /* return the number of undisplayed frames in the queue */ |
| 804 | static int frame_queue_nb_remaining(FrameQueue *f) |
no test coverage detected