MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / frame_queue_peek_writable

Function frame_queue_peek_writable

fftools/ffplay.c:746–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746static 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
762static Frame *frame_queue_peek_readable(FrameQueue *f)
763{

Callers 3

queue_pictureFunction · 0.85
audio_threadFunction · 0.85
subtitle_threadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected