rtpbin: only start buffering when < 100%
Only start buffering when the percentage message is < 100 %.
This commit is contained in:
parent
0348ebe651
commit
3efcc0fbc1
@ -1829,10 +1829,12 @@ gst_rtp_bin_handle_message (GstBin * bin, GstMessage * message)
|
|||||||
change = TRUE;
|
change = TRUE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* pause the streams */
|
if (min_percent < 100) {
|
||||||
rtpbin->buffering = TRUE;
|
/* pause the streams */
|
||||||
active = FALSE;
|
rtpbin->buffering = TRUE;
|
||||||
change = TRUE;
|
active = FALSE;
|
||||||
|
change = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
GST_RTP_BIN_UNLOCK (rtpbin);
|
GST_RTP_BIN_UNLOCK (rtpbin);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user