source-mirror: Add empty list entry to select no source

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-01-23 22:04:25 +01:00
parent c5e02af178
commit b2b3f5fde8

View file

@ -144,6 +144,7 @@ static bool UpdateSourceListCB(void* ptr, obs_source_t* src)
static void UpdateSourceList(obs_property_t* p)
{
obs_property_list_clear(p);
obs_property_list_add_string(p, "", "");
obs_enum_sources(UpdateSourceListCB, p);
#if LIBOBS_API_MAJOR_VER >= 23
obs_enum_scenes(UpdateSourceListCB, p);