Skip to content

Is it possible to have a custom thread pool to execute GstCallback (AppSink.connect) ? (question) #251

Answered by neilcsmith-net
lmcdasi asked this question in Q&A
Discussion options

You must be logged in to vote

In which case, the thread pool in Gst isn't relevant. Buffer callbacks happen on the native streaming thread. You can do what you like with the Sample, including passing it to other threads to process, just make sure not to dispose() it until you're done. GStreamer uses a buffer pool, so be careful about memory use here - the longer you keep the samples / buffers, the more will be allocated by GStreamer.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@neilcsmith-net
Comment options

@lmcdasi
Comment options

@lmcdasi
Comment options

@neilcsmith-net
Comment options

@neilcsmith-net
Comment options

Answer selected by neilcsmith-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #250 on March 08, 2022 14:47.