rtsp-stream: Not wait on receiver streams when pre-rolling

Without this patch there are problem pre-rolling when using audio back
channel.

Without this patch a probe will be created for all streams including
the stream for audio backchannel. To pre-roll all this pads have to
receive data. Since the stream for audio backchannel is a receiver this
will never happen.

The solution is to never create any probes for streams that are for
incomming data and instead set them as blocking already from beginning.
This commit is contained in:
Göran Jönsson 2019-06-28 12:28:41 +02:00
parent 7b2adb015d
commit d1d404912e

View file

@ -5062,6 +5062,11 @@ set_blocked (GstRTSPStream * stream, gboolean blocked)
priv = stream->priv;
if (blocked) {
/* if receiver */
if (priv->sinkpad) {
priv->blocking = TRUE;
return;
}
for (i = 0; i < 2; i++) {
if (priv->blocked_id[i] != 0)
continue;