rtsp-media: Unblock all streams
authorDavid Svensson Fors <davidsf@axis.com>
Mon, 29 Oct 2018 16:02:41 +0000 (17:02 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Thu, 3 Oct 2019 11:54:15 +0000 (11:54 +0000)
commite16867b1618460452d0a637b2ba64e6d88e0c7c9
tree2b460c35e16e9523c4397f8eb9858207f9b3bee5
parent18f4f4e5095fc41c59638710dc6477c240158704
rtsp-media: Unblock all streams

When unsuspending and going to PLAYING, unblock all streams instead of
only those that are linked (the linked streams are the ones for which
SETUP has been called). GST_FLOW_NOT_LINKED will be returned when
pushing buffers on unlinked streams.

This change is because playback using single-threaded demuxers like
matroska-demux could be blocked if SETUP was not called for all media.
Demuxers that use GstFlowCombiner (including gstoggdemux, gstavidemux,
gstflvdemux, qtdemux, and matroska-demux) will handle
GST_FLOW_NOT_LINKED automatically.

Fixes #39
gst/rtsp-server/rtsp-media.c
tests/check/gst/rtspserver.c