PRLibrary* lib = nsnull; PRBool started = PR_FALSE; if(mInst) { lib = mInst->fLibrary; started = mInst->IsStarted(); }
if (callbacks->asfile == NULL) return NS_OK;
ns4xPluginStreamListener::OnFileAvailable(nsIPluginStreamInfo* pluginInfo,                                           const char* fileName){    const NPPluginFuncs *callbacks;    NPP                 npp;    pluginInfo->GetURL(&mNPStream.url);    mInst->GetCallbacks(&callbacks);    mInst->GetNPP(&npp);    if (callbacks->asfile == NULL)        return NS_OK;#if !TARGET_CARBON    // pinkerton    // relies on routine descriptors, not present in carbon.     // We need to fix this.    PRLibrary* lib = nsnull;    PRBool started = PR_FALSE;    if(mInst) {      lib = mInst->fLibrary;      started = mInst->IsStarted();    }    if (started)    {      NS_TRY_SAFE_CALL_VOID(CallNPP_StreamAsFileProc(callbacks->asfile,                             npp,                             &mNPStream,                             fileName), lib);    }#endif     return NS_OK;}