0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

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.
This commit is contained in:
Clayton Groeneveld 2020-09-03 17:06:58 -05:00
parent a1434fe443
commit ecb71e32d1

View File

@ -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: