mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
use source_id to identify meida sources
This commit is contained in:
parent
5e60cefd1c
commit
e6a3f98ab7
|
|
@ -64,8 +64,7 @@ SceneSwitcher::SceneSwitcher(QWidget *parent)
|
|||
auto sourceEnum = [](void *data, obs_source_t *source) -> bool /* -- */
|
||||
{
|
||||
QComboBox *combo = reinterpret_cast<QComboBox *>(data);
|
||||
if (obs_source_media_get_state(source) !=
|
||||
OBS_MEDIA_STATE_NONE) {
|
||||
if (strcmp(obs_source_get_id(source), "ffmpeg_source") == 0) {
|
||||
const char *name = obs_source_get_name(source);
|
||||
combo->addItem(name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user