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:
parent
0df774c143
commit
0c6beeacb4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user