mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
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:
parent
7b2adb015d
commit
d1d404912e
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue