directsoundsrc: Use a GstClockID to wait instead of Sleep()
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 9 May 2017 10:36:10 +0000 (16:06 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 12 May 2017 09:21:10 +0000 (14:51 +0530)
commit8494f1e709649234c6c7ed4ededd7a9a5f4852a3
treee76a47fe0d24fd148bfd96f20a81f4787c290b54
parent6026d12d90e5b86da1110ecd8873a7fcdcc43348
directsoundsrc: Use a GstClockID to wait instead of Sleep()

The main advantage is that our sleeps can be interrupted in case of
an src_reset(). Earlier, we would need to wait for a read to complete
before we could do a reset, which could take a long time.

https://bugzilla.gnome.org/show_bug.cgi?id=781249
sys/directsound/gstdirectsoundsrc.c
sys/directsound/gstdirectsoundsrc.h