[FFmpeg-devel] [RFC] Event loop

Nicolas George george at nsup.org
Fri Feb 19 00:17:02 EET 2021


Mark Thompson (12021-02-18):
> I wrote the last packet a second ago and got a callback for
> writeability from the loop, but didn't have anything to write back
> then so I did nothing.
> 
> Now I have a packet to write, but the event loop is sitting idle in its poll() call.
> 
> You've said I'm not allowed to interact with the loop from another
> thread, so how do I make the loop generate a callback so I can write
> something on the thread which is allowed to write?

Where does your packet come from? If it comes from inside the loop, then
there is no problem.

If it comes from another thread, that means your application either
requires a libavutil with a thread-capable event loop backend or must
provide one.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210218/c9022caf/attachment.sig>


More information about the ffmpeg-devel mailing list