mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
rtsp-media: Don't unblock with remaining dynamic payloaders
If we still have some dynamic paylaoders which haven't posted no-more-pads yet, don't go to PREPARED if one of the streams blocked. The risk was that we would end up not exposing/using all specified streams. The downside is that if you have _multiple_ _live_ _dynamic_ payloaders then it will take a bit more time to start. But only if those 3 conditions are present. https://bugzilla.gnome.org/show_bug.cgi?id=769521
This commit is contained in:
parent
d1a6418fe2
commit
6371f2fc29
1 changed files with 3 additions and 2 deletions
|
@ -2555,8 +2555,9 @@ default_handle_message (GstRTSPMedia * media, GstMessage * message)
|
|||
s = gst_message_get_structure (message);
|
||||
if (gst_structure_has_name (s, "GstRTSPStreamBlocking")) {
|
||||
GST_DEBUG ("media received blocking message");
|
||||
if (priv->blocked && media_streams_blocking (media)) {
|
||||
GST_DEBUG ("media is blocking");
|
||||
if (priv->blocked && media_streams_blocking (media) &&
|
||||
priv->no_more_pads_pending == 0) {
|
||||
GST_DEBUG_OBJECT (GST_MESSAGE_SRC (message), "media is blocking");
|
||||
collect_media_stats (media);
|
||||
|
||||
if (priv->status == GST_RTSP_MEDIA_STATUS_PREPARING)
|
||||
|
|
Loading…
Reference in a new issue