quartz: Fix a race in IMediaFilter::Pause().
commitbbdb6584026393ef1159bd841b61abcad0f1e247
authorAkihiro Sagawa <sagawa.aki@gmail.com>
Fri, 10 Dec 2021 14:58:15 +0000 (10 23:58 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 10 Dec 2021 21:00:18 +0000 (10 22:00 +0100)
tree736cb2ea2e758e1e3eaf5e69566da5897d364134
parentb650e768bea8a2fc855c005ef6c9bce0c9131dc6
quartz: Fix a race in IMediaFilter::Pause().

Before finishing async run, graph->stream_start isn't stable.
This will cause graph->current_pos to be out of playback duration.
Since graph->current_pos is out of the range, the playback will
be stopped.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52200
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/quartz/filtergraph.c