mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
baseaudiosink: Use new gst_audio_clock_new_full()
This commit is contained in:
parent
32b0b0aef9
commit
f1ac770f1b
1 changed files with 3 additions and 2 deletions
|
@ -272,8 +272,9 @@ gst_base_audio_sink_init (GstBaseAudioSink * baseaudiosink,
|
||||||
baseaudiosink->provide_clock = DEFAULT_PROVIDE_CLOCK;
|
baseaudiosink->provide_clock = DEFAULT_PROVIDE_CLOCK;
|
||||||
baseaudiosink->priv->slave_method = DEFAULT_SLAVE_METHOD;
|
baseaudiosink->priv->slave_method = DEFAULT_SLAVE_METHOD;
|
||||||
|
|
||||||
baseaudiosink->provided_clock = gst_audio_clock_new ("GstAudioSinkClock",
|
baseaudiosink->provided_clock = gst_audio_clock_new_full ("GstAudioSinkClock",
|
||||||
(GstAudioClockGetTimeFunc) gst_base_audio_sink_get_time, baseaudiosink);
|
(GstAudioClockGetTimeFunc) gst_base_audio_sink_get_time,
|
||||||
|
gst_object_ref (baseaudiosink), (GDestroyNotify) gst_object_unref);
|
||||||
|
|
||||||
GST_BASE_SINK (baseaudiosink)->can_activate_push = TRUE;
|
GST_BASE_SINK (baseaudiosink)->can_activate_push = TRUE;
|
||||||
GST_BASE_SINK (baseaudiosink)->can_activate_pull = DEFAULT_CAN_ACTIVATE_PULL;
|
GST_BASE_SINK (baseaudiosink)->can_activate_pull = DEFAULT_CAN_ACTIVATE_PULL;
|
||||||
|
|
Loading…
Reference in a new issue