gstreamer pipeline creation fails - in case of concurrent initialization

Sebastian Dröge sebastian at centricular.com
Sat May 14 07:42:21 UTC 2016


On Fr, 2016-05-13 at 06:00 -0700, pawan.ec wrote:
> Hi All,
> 
> i am trying to initialize two gst pipeline concurrently 
> 1. to play the webm files
> 2. to play the png images
> 
> When i am trying to create the pipeline, one of them start the process of
> init (like does gst_init_check(), and then proceed with pipeline creation)
> at the same time other comes for init and it fails.
> while other continue to initialize and properly created.

gst_init() and gst_init_check() are not thread-safe. Only call it once
at the same time, or even better only call it once at all.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160514/ed4dab91/attachment.sig>


More information about the gstreamer-devel mailing list