add names to sources, use 'id' for the internal source identifier names rather than 'name'

This commit is contained in:
jp9000
2013-12-20 17:23:19 -07:00
parent 0781670ba2
commit 95a7da2d4c
10 changed files with 62 additions and 59 deletions

View File

@@ -149,14 +149,14 @@ static void test()
/* ------------------------------------------------------ */
/* create source */
SourceContext source{obs_source_create(SOURCE_INPUT,
"random", NULL)};
"random", "a test source", NULL)};
if (!source)
throw "Couldn't create random test source";
/* ------------------------------------------------------ */
/* create filter */
SourceContext filter{obs_source_create(SOURCE_FILTER,
"test", NULL)};
"test", "a test filter", NULL)};
if (!filter)
throw "Couldn't create test filter";
obs_source_filter_add(source, filter);