mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
rtpbin: only start buffering when < 100%
Only start buffering when the percentage message is < 100 %.
This commit is contained in:
parent
0348ebe651
commit
3efcc0fbc1
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue