mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
baseaudiosrc: Use new gst_audio_clock_new_full()
This commit is contained in:
parent
8989ad93d9
commit
32b0b0aef9
1 changed files with 3 additions and 2 deletions
|
@ -250,8 +250,9 @@ gst_base_audio_src_init (GstBaseAudioSrc * baseaudiosrc,
|
||||||
* value based on negotiated format. */
|
* value based on negotiated format. */
|
||||||
GST_BASE_SRC (baseaudiosrc)->blocksize = 0;
|
GST_BASE_SRC (baseaudiosrc)->blocksize = 0;
|
||||||
|
|
||||||
baseaudiosrc->clock = gst_audio_clock_new ("GstAudioSrcClock",
|
baseaudiosrc->clock = gst_audio_clock_new_full ("GstAudioSrcClock",
|
||||||
(GstAudioClockGetTimeFunc) gst_base_audio_src_get_time, baseaudiosrc);
|
(GstAudioClockGetTimeFunc) gst_base_audio_src_get_time,
|
||||||
|
gst_object_ref (baseaudiosrc), (GDestroyNotify) gst_object_unref);
|
||||||
|
|
||||||
/* we are always a live source */
|
/* we are always a live source */
|
||||||
gst_base_src_set_live (GST_BASE_SRC (baseaudiosrc), TRUE);
|
gst_base_src_set_live (GST_BASE_SRC (baseaudiosrc), TRUE);
|
||||||
|
|
Loading…
Reference in a new issue