fInternalIDCounter wasn't initialized; add debug info... it is triggering an ASSERT in media_addon_server though, about the flavor_id.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24060 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -17,6 +17,7 @@ WebCamMediaAddOn::WebCamMediaAddOn(image_id imid)
|
|||||||
fRoster(NULL)
|
fRoster(NULL)
|
||||||
{
|
{
|
||||||
PRINT((CH "()" CT));
|
PRINT((CH "()" CT));
|
||||||
|
fInternalIDCounter = 0;
|
||||||
/* Customize these parameters to match those of your node */
|
/* Customize these parameters to match those of your node */
|
||||||
fMediaFormat.type = B_MEDIA_RAW_VIDEO;
|
fMediaFormat.type = B_MEDIA_RAW_VIDEO;
|
||||||
fMediaFormat.u.raw_video = media_raw_video_format::wildcard;
|
fMediaFormat.u.raw_video = media_raw_video_format::wildcard;
|
||||||
@@ -92,7 +93,7 @@ WebCamMediaAddOn::GetFlavorAt(int32 n, const flavor_info **out_info)
|
|||||||
if (cam && cam->FlavorInfo())
|
if (cam && cam->FlavorInfo())
|
||||||
*out_info = cam->FlavorInfo();
|
*out_info = cam->FlavorInfo();
|
||||||
fRoster->Unlock();
|
fRoster->Unlock();
|
||||||
PRINT((CH ": returning flavor for %d" CT, n));
|
PRINT((CH ": returning flavor for %d, internal_id %d" CT, n, (*out_info)->internal_id));
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user