rtsp-stream: Only create RTP sending/receiving rtpbin pads if needed
authorSebastian Dröge <sebastian@centricular.com>
Thu, 19 Nov 2015 13:01:16 +0000 (15:01 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Dec 2015 13:32:45 +0000 (15:32 +0200)
commit61772cb32644a077750abffcd17c43b01fb93cfa
tree8296bd0f2f433bb1a36767881d157248e6ed37b2
parentcdc0849dfe74ceb0c151b374251463111f42a414
rtsp-stream: Only create RTP sending/receiving rtpbin pads if needed

Adding them when not needed will start some logic inside rtpbin that might be
problematic. Also if e.g. for a sender media we suddenly receive RTP data, we
would start up a rtpjitterbuffer and behave in weird ways.

We still set up the UDP sources for RTP receiving for a sender media to be
able to receive any packets sent by the client for NAT traversal. They will
all go to a fakesink though.

Having an rtpjitterbuffer in the media pipeline will cause the pipeline to be
NO_PREROLL, which will cause deadlocks when seeking the media as it will never
receive ASYNC_DONE after a seek.

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