mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 13:04:54 -04:00
Do not visually select audio-only sources
This commit is contained in:
1 parent
d3e6148ae7
commit
07b2fd5972
2 files changed
+17
No files matched your search
@@ -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