As from this page
https://gstreamer.freedesktop.org/documentation/application-development/advanced/threads.html?gi-language=c, gstreamer automatically created new threads when necessary. Element can also create their own thread. Is there any way to manually destroy the thread that has been used by gstreamer? Let's say after playing, i set pipeline to be NULL, i wanna clean the threads and memory, then do some other tasks in the same process.. Is there any way to achieve this? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Generally, no. All threads are managed internally by GStreamer itself
and should be destroyed when putting the pipeline into the NULL state. Cheers -Matt On 7/12/20 2:46 pm, wzho0776 wrote: > As from this page > https://gstreamer.freedesktop.org/documentation/application-development/advanced/threads.html?gi-language=c, > gstreamer automatically created new threads when necessary. Element can also > create their own thread. > > Is there any way to manually destroy the thread that has been used by > gstreamer? Let's say after playing, i set pipeline to be NULL, i wanna clean > the threads and memory, then do some other tasks in the same process.. > > Is there any way to achieve this? > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel OpenPGP_signature (505 bytes) Download Attachment |
Thanks Matthew!
As from the document, there exists a `GST_STREAM_STATUS_TYPE_DESTROY` message. are we able to see this message when the pipeline set to NULL or it's just not shown? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
That depends. Sometimes threads are created and destroyed without using
the stream status messages. It's also possible that threads are created using stream status messages but when the destroy messages are posted to the pipeline's bus, the bus is flushing (to avoid reference cycles) so the messages are simply dropped. In all other cases, you should see the appropriate destroy message. On 8/12/20 1:33 pm, wzho0776 wrote: > Thanks Matthew! > > As from the document, there exists a `GST_STREAM_STATUS_TYPE_DESTROY` > message. are we able to see this message when the pipeline set to NULL or > it's just not shown? > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel OpenPGP_signature (505 bytes) Download Attachment |
Free forum by Nabble | Edit this page |