mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 05:22:30 +00:00
update for clock provider API change
This commit is contained in:
parent
ac849ec2b3
commit
71b615515a
2 changed files with 4 additions and 1 deletions
|
@ -495,6 +495,8 @@ gst_rtp_jitter_buffer_init (GstRtpJitterBuffer * jitterbuffer)
|
|||
|
||||
gst_element_add_pad (GST_ELEMENT (jitterbuffer), priv->srcpad);
|
||||
gst_element_add_pad (GST_ELEMENT (jitterbuffer), priv->sinkpad);
|
||||
|
||||
GST_OBJECT_FLAG_SET (jitterbuffer, GST_ELEMENT_FLAG_PROVIDE_CLOCK);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -389,7 +389,6 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
|
|||
NULL, NULL, gst_rtp_dec_marshal_VOID__UINT_UINT, G_TYPE_NONE, 2,
|
||||
G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
|
||||
gstelement_class->provide_clock =
|
||||
GST_DEBUG_FUNCPTR (gst_rtp_dec_provide_clock);
|
||||
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_rtp_dec_change_state);
|
||||
|
@ -419,6 +418,8 @@ gst_rtp_dec_init (GstRTPDec * rtpdec)
|
|||
{
|
||||
rtpdec->provided_clock = gst_system_clock_obtain ();
|
||||
rtpdec->latency = DEFAULT_LATENCY_MS;
|
||||
|
||||
GST_OBJECT_FLAG_SET (rtpdec, GST_ELEMENT_FLAG_PROVIDE_CLOCK);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue