diff options
author | Matthew Gregan <[email protected]> | 2012-08-16 18:40:44 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2012-08-16 18:40:44 +1200 |
commit | bd65f80c8ef9e56d9cfabf2e125d420bc926bc97 (patch) | |
tree | 1a0f561ece4094fcf40e92e9666d01af66cc3e2c | |
parent | fa7cf6ecfe1a082cd255569172a62a3df3122fee (diff) | |
download | cubeb-bd65f80c8ef9e56d9cfabf2e125d420bc926bc97.tar.gz cubeb-bd65f80c8ef9e56d9cfabf2e125d420bc926bc97.zip |
alsa: initialize stream's last activity timer when starting stream.
-rw-r--r-- | src/cubeb_alsa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cubeb_alsa.c b/src/cubeb_alsa.c index 101d65a..278c706 100644 --- a/src/cubeb_alsa.c +++ b/src/cubeb_alsa.c @@ -727,6 +727,7 @@ cubeb_stream_start(cubeb_stream * stm) pthread_mutex_lock(&stm->mutex); snd_pcm_pause(stm->pcm, 0); + gettimeofday(&stm->last_activity, NULL); pthread_mutex_unlock(&stm->mutex); pthread_mutex_lock(&ctx->mutex); |