mf/samplegrabber: Handle paused state.
commit6ac1cd51bd8fe05e4a46f95bfaa6eddbfbb0eeff
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Thu, 3 Jun 2021 12:43:14 +0000 (3 15:43 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 3 Jun 2021 15:42:19 +0000 (3 17:42 +0200)
treee5de11786a7d0aac5465879e05b7f8c3bffb2879
parentb52e16e0ff44fa3a88111ecb60c4542df50a2e58
mf/samplegrabber: Handle paused state.

The following behaviors from Windows are implemented:
 * Transitions from STOPPED to PAUSED are forbidden;
 * Sample requests are only emitted for transitions from STOPPED to
   RUNNING (i.e., not when transitioning from PAUSED);
 * Transition events are emitted again when transitioning from a
   state to the same state, except when such state is PAUSED.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/mf/samplegrabber.c