Add source elements to the pipeline before activation
authorPatricia Muscalu <patricia@axis.com>
Wed, 5 Dec 2018 14:07:25 +0000 (15:07 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Thu, 6 Dec 2018 08:59:04 +0000 (08:59 +0000)
commit3be1b9bba8a165a62008871eff3e9cfcb1338910
tree3e80507b00d0ae2f72a4ddfc3f01368992e8209c
parent5b86dc34eef2f4bf5770e3ec5f4d6e91af0182f5
Add source elements to the pipeline before activation

In plug_src we changed the element state before adding it to
the owner container. This prevented the pipeline from intercepting
a GST_STREAM_STATUS_TYPE_CREATE message from the pad in order
to assign a custom task pool.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/issues/53
gst/rtsp-server/rtsp-stream.c