Added some debug output in case Reader::RegisterPlugin() failed.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6197 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-01-20 10:38:23 +00:00
parent 0df774c143
commit 0c6beeacb4

View File

@ -143,7 +143,7 @@ AddOnManager::RegisterAddOns()
ReaderPlugin *rp = dynamic_cast<ReaderPlugin *>(pl);
if (rp)
RegisterReader(rp, ref);
DecoderPlugin *dp = dynamic_cast<DecoderPlugin *>(pl);
if (dp)
RegisterDecoder(dp, ref);
@ -175,8 +175,10 @@ AddOnManager::RegisterReader(ReaderPlugin *reader, const entry_ref &ref)
reader_info info;
info.ref = ref;
if (B_OK != reader->RegisterPlugin())
if (B_OK != reader->RegisterPlugin()) {
printf("AddOnManager::RegisterReader(): reader->RegisterPlugin() failed!\n");
return;
}
fLocker->Lock();
fReaderList->Insert(info);