From ecb71e32d122192dbbb2d2e1144198d6378968cd Mon Sep 17 00:00:00 2001 From: Clayton Groeneveld Date: Thu, 3 Sep 2020 17:06:58 -0500 Subject: [PATCH] UI: Set restart state when there is no media When there is no media, set the media to the restart state. Currently, this only affects the VLC source, as the media source doesn't use the OBS_MEDIA_STATE_NONE, at this time. --- UI/media-controls.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/media-controls.cpp b/UI/media-controls.cpp index 0248ade81..c73261d21 100644 --- a/UI/media-controls.cpp +++ b/UI/media-controls.cpp @@ -253,6 +253,7 @@ void MediaControls::RefreshControls() switch (state) { case OBS_MEDIA_STATE_STOPPED: case OBS_MEDIA_STATE_ENDED: + case OBS_MEDIA_STATE_NONE: SetRestartState(); break; case OBS_MEDIA_STATE_PLAYING: