Merge pull request #3404 from cg2121/media-state-fix

UI: Set restart state when there is no media
This commit is contained in:
Jim 2020-09-07 06:22:42 -07:00 committed by GitHub
commit 2d7801ce16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,6 +268,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: