rtspclientsink: Notify the stream transport about each written message
authorSebastian Dröge <sebastian@centricular.com>
Mon, 15 Apr 2019 17:33:01 +0000 (20:33 +0300)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 15 Apr 2019 17:34:56 +0000 (17:34 +0000)
Otherwise it will never try to send us the next one: it tries to keep
exactly one message in-flight all the time.

In gst-rtsp-server this is done asynchronously via the GstRTSPWatch but
in the client sink we always write data out synchronously.

gst/rtsp-sink/gstrtspclientsink.c

index 3e309c1..9b87ea3 100644 (file)
@@ -3847,6 +3847,8 @@ do_send_data (GstBuffer * buffer, guint8 channel,
 
   gst_rtsp_message_unset (&message);
 
+  gst_rtsp_stream_transport_message_sent (context->stream_transport);
+
   return res == GST_RTSP_OK;
 }