mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
jitterbuffer: provide a clock.
since we are using the clock for sync, we need to also provide a clock for good measure. The reason is that even if downstream elements provide a clock, we don't want to have that clock selected because it might not be running yet.
This commit is contained in:
parent
210f1c44c7
commit
6cb0efede4
1 changed files with 9 additions and 0 deletions
|
@ -235,6 +235,7 @@ static GstPad *gst_rtp_jitter_buffer_request_new_pad (GstElement * element,
|
|||
GstPadTemplate * templ, const gchar * name);
|
||||
static void gst_rtp_jitter_buffer_release_pad (GstElement * element,
|
||||
GstPad * pad);
|
||||
static GstClock *gst_rtp_jitter_buffer_provide_clock (GstElement * element);
|
||||
|
||||
/* pad overrides */
|
||||
static GstCaps *gst_rtp_jitter_buffer_getcaps (GstPad * pad);
|
||||
|
@ -439,6 +440,8 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
|
|||
GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_request_new_pad);
|
||||
gstelement_class->release_pad =
|
||||
GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_release_pad);
|
||||
gstelement_class->provide_clock =
|
||||
GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_provide_clock);
|
||||
|
||||
klass->clear_pt_map = GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_clear_pt_map);
|
||||
klass->set_active = GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_set_active);
|
||||
|
@ -651,6 +654,12 @@ wrong_pad:
|
|||
}
|
||||
}
|
||||
|
||||
static GstClock *
|
||||
gst_rtp_jitter_buffer_provide_clock (GstElement * element)
|
||||
{
|
||||
return gst_system_clock_obtain ();
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtp_jitter_buffer_clear_pt_map (GstRtpJitterBuffer * jitterbuffer)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue