rtsp-stream: Ensure that the pipeline is live and later-added udpsrcs are syncing...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 10 Mar 2016 11:54:38 +0000 (13:54 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 10 Mar 2016 17:47:13 +0000 (19:47 +0200)
commit8b68edd138ec78437279ac9ec482aabe59f123dd
treef7631f9997e1db3a545788bab6574023cd6f4ed4
parent4a6f63ad031ea540fa1e266d034763cde52344e6
rtsp-stream: Ensure that the pipeline is live and later-added udpsrcs are syncing the state with the parent bin

Without this, RECORD pipelines are broken because
a) we wait for ASYNC_DONE which never happens anymore because udpsrc would be
added later. Previously it was there earlier and due to NO_PREROLL caused the
pipeline to preroll immediately
b) the udpsrc for the pipeline is added later and never set to PLAYING state,
as the corresponding code previously was only for PLAY pipelines.

https://bugzilla.gnome.org/show_bug.cgi?id=763281
gst/rtsp-server/rtsp-stream.c