This has to fix the bug triggering the ASSERT in BMediaRoster::RegisterNode...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24088 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-02-24 09:44:10 +00:00
parent 18c361960a
commit c789abb0e8

View File

@ -133,7 +133,7 @@ WebCamMediaAddOn::InstantiateNodeFor(
/* At most one instance of the node should be instantiated at any given
* time. The locking for this restriction may be found in the VideoProducer
* class. */
node = new VideoProducer(this, cam, cam->FlavorInfo()->name, fDefaultFlavorInfo.internal_id);
node = new VideoProducer(this, cam, cam->FlavorInfo()->name, cam->FlavorInfo()->internal_id);
if (node && (node->InitCheck() < B_OK)) {
delete node;
node = NULL;