mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtpbin: when a stream is created, pause the jitterbuffer if rtpbin is buffering.
This commit is contained in:
parent
38a5b08ef2
commit
f6e9f359b9
1 changed files with 9 additions and 0 deletions
|
@ -1181,6 +1181,15 @@ create_stream (GstRtpBinSession * session, guint32 ssrc)
|
||||||
if (demux)
|
if (demux)
|
||||||
gst_element_link (buffer, demux);
|
gst_element_link (buffer, demux);
|
||||||
|
|
||||||
|
if (rtpbin->buffering) {
|
||||||
|
guint64 last_out;
|
||||||
|
|
||||||
|
GST_INFO_OBJECT (rtpbin,
|
||||||
|
"bin is buffering, set jitterbuffer as not active");
|
||||||
|
g_signal_emit_by_name (buffer, "set-active", FALSE, (gint64) 0, &last_out);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
GST_OBJECT_LOCK (rtpbin);
|
GST_OBJECT_LOCK (rtpbin);
|
||||||
target = GST_STATE_TARGET (rtpbin);
|
target = GST_STATE_TARGET (rtpbin);
|
||||||
GST_OBJECT_UNLOCK (rtpbin);
|
GST_OBJECT_UNLOCK (rtpbin);
|
||||||
|
|
Loading…
Reference in a new issue