rtsp-stream: use idle source in on_message_sent
authorGöran Jönsson <goranjn@axis.com>
Thu, 18 Oct 2018 05:25:05 +0000 (07:25 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 23 Oct 2018 07:18:52 +0000 (08:18 +0100)
commit7cfd59820af4bbd69f682dd91cd6c37f7c38b501
tree4dd00138818215ddadff62d1c905144d14eb1f25
parentebafccb65abead1456428a85a08c2a7121f73b02
rtsp-stream: use idle source in on_message_sent

When the underlying layers are running on_message_sent, this sometimes
causes the underlying layer to send more data, which will cause the
underlying layer to run callback on_message_sent again. This can go on
and on.

To break this chain, we introduce an idle source that takes care of
sending data if there are more to send when running callback

https://bugzilla.gnome.org/show_bug.cgi?id=797289
gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-latency-bin.c
gst/rtsp-server/rtsp-stream.c
gst/rtsp-server/rtsp-stream.h