rtpbin: only start buffering when < 100%

Only start buffering when the percentage message is < 100 %.
This commit is contained in:
Wim Taymans 2009-10-08 18:42:11 +02:00
parent 0348ebe651
commit 3efcc0fbc1

View File

@ -1829,11 +1829,13 @@ gst_rtp_bin_handle_message (GstBin * bin, GstMessage * message)
change = TRUE; change = TRUE;
} }
} else { } else {
if (min_percent < 100) {
/* pause the streams */ /* pause the streams */
rtpbin->buffering = TRUE; rtpbin->buffering = TRUE;
active = FALSE; active = FALSE;
change = TRUE; change = TRUE;
} }
}
GST_RTP_BIN_UNLOCK (rtpbin); GST_RTP_BIN_UNLOCK (rtpbin);
gst_message_unref (message); gst_message_unref (message);