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

@@ -153,14 +153,14 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdLine,
/* ------------------------------------------------------ */
/* create source */
SourceContext source = obs_source_create(SOURCE_INPUT,
"random", NULL);
"random", "some randon source", NULL);
if (!source)
throw "Couldn't create random test source";
/* ------------------------------------------------------ */
/* create filter */
SourceContext filter = obs_source_create(SOURCE_FILTER,
"test", NULL);
"test", "a nice little green filter", NULL);
if (!filter)
throw "Couldn't create test filter";
obs_source_filter_add(source, filter);