浏览代码

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.
Clayton Groeneveld 5 年之前
父节点
当前提交
ecb71e32d1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      UI/media-controls.cpp

+ 1 - 0
UI/media-controls.cpp

@@ -253,6 +253,7 @@ void MediaControls::RefreshControls()
 	switch (state) {
 	switch (state) {
 	case OBS_MEDIA_STATE_STOPPED:
 	case OBS_MEDIA_STATE_STOPPED:
 	case OBS_MEDIA_STATE_ENDED:
 	case OBS_MEDIA_STATE_ENDED:
+	case OBS_MEDIA_STATE_NONE:
 		SetRestartState();
 		SetRestartState();
 		break;
 		break;
 	case OBS_MEDIA_STATE_PLAYING:
 	case OBS_MEDIA_STATE_PLAYING: