rtmp2: Chunk messages as buffers in loop thread
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>
Mon, 27 Jan 2020 13:05:31 +0000 (14:05 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 21 Feb 2020 15:20:41 +0000 (15:20 +0000)
commita566461294a706545e8ccbcd48aa7fb1a6fb9872
treeb567615e52cb16ac22e95b941fca056274760274
parent9a13df9ba57f3beb101b5a956f52031881beb2bd
rtmp2: Chunk messages as buffers in loop thread

Move output chunking from gst_rtmp_connection_queue_message into
gst_rtmp_connection_start_write, which effectively moves it from the
streaming thread into the loop thread.

This allows us to handle the outgoing chunk-size message (which is
generated by changing the future chunk-size property) properly, which
could come from any other thread.
gst/rtmp2/rtmp/rtmpchunkstream.c
gst/rtmp2/rtmp/rtmpconnection.c