wasapi: Fix double call to Start when resetting the element
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 4 Jan 2019 13:06:43 +0000 (18:36 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 4 Jan 2019 13:17:07 +0000 (18:47 +0530)
commit8249763f6ceec6b9276ce58380b9085fd7e01612
tree6dbf7a6d6fedfdbfa2af377fa8e6fb2f35dcef35
parent2f05ee9ba9a7bbdde761c8da1fe330a58b1c4687
wasapi: Fix double call to Start when resetting the element

When either the source or sink goes from PLAYING -> NULL -> PLAYING,
we call _reset() which sets client_needs_restart, and then we call
prepare() which calls IAudioClient_Start(), so we don't need to call
it again in src_read() or sink_write(). Unlike when we're just going
PLAYING -> PAUSED -> PLAYING.
sys/wasapi/gstwasapisink.c
sys/wasapi/gstwasapisrc.c