mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Do not visually select audio-only sources
This commit is contained in:
@@ -1360,6 +1360,10 @@ void OBSBasic::on_sources_currentItemChanged(QListWidgetItem *current,
|
||||
return;
|
||||
|
||||
OBSSceneItem item = current->data(Qt::UserRole).value<OBSSceneItem>();
|
||||
obs_source_t source = obs_sceneitem_getsource(item);
|
||||
if ((obs_source_get_output_flags(source) & OBS_SOURCE_VIDEO) == 0)
|
||||
return;
|
||||
|
||||
obs_scene_enum_items(GetCurrentScene(), select_one, &item);
|
||||
|
||||
UNUSED_PARAMETER(prev);
|
||||
|
||||
Reference in New Issue
Block a user