From 3efcc0fbc1de502b749c55a82f9e3f9a8f0245dd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 8 Oct 2009 18:42:11 +0200 Subject: [PATCH] rtpbin: only start buffering when < 100% Only start buffering when the percentage message is < 100 %. --- gst/rtpmanager/gstrtpbin.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index a5bbd4e1fa..86db344b30 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -1829,10 +1829,12 @@ gst_rtp_bin_handle_message (GstBin * bin, GstMessage * message) change = TRUE; } } else { - /* pause the streams */ - rtpbin->buffering = TRUE; - active = FALSE; - change = TRUE; + if (min_percent < 100) { + /* pause the streams */ + rtpbin->buffering = TRUE; + active = FALSE; + change = TRUE; + } } GST_RTP_BIN_UNLOCK (rtpbin);