mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
wasapisrc: Use new gst_audio_clock_new_full()
This commit is contained in:
parent
e245709f96
commit
78639dd379
1 changed files with 6 additions and 0 deletions
|
@ -117,8 +117,14 @@ gst_wasapi_src_init (GstWasapiSrc * self, GstWasapiSrcClass * gclass)
|
|||
self->start_time = GST_CLOCK_TIME_NONE;
|
||||
self->next_time = GST_CLOCK_TIME_NONE;
|
||||
|
||||
#if GST_CHECK_VERSION(0, 10, 31) || (GST_CHECK_VERSION(0, 10, 30) && GST_VERSION_NANO > 0)
|
||||
self->clock = gst_audio_clock_new_full ("GstWasapiSrcClock",
|
||||
gst_wasapi_src_get_time, gst_object_ref (self),
|
||||
(GDestroyNotify) gst_object_unref);
|
||||
#else
|
||||
self->clock = gst_audio_clock_new ("GstWasapiSrcClock",
|
||||
gst_wasapi_src_get_time, self);
|
||||
#endif
|
||||
|
||||
CoInitialize (NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue