NS_TRY_SAFE_CALL_VOID(CallNPP_StreamAsFileProc(callbacks->asfile,
if (started) { NS_TRY_SAFE_CALL_VOID(CallNPP_StreamAsFileProc(callbacks->asfile,
ns4xPluginStreamListener::OnFileAvailable(nsIPluginStreamInfo* pluginInfo,                                           const char* fileName){  if(!mInst || !mInst->IsStarted())    return NS_ERROR_FAILURE;  const NPPluginFuncs *callbacks = nsnull;  mInst->GetCallbacks(&callbacks);  if(!callbacks && !callbacks->asfile)    return NS_ERROR_FAILURE;    NPP npp;  mInst->GetNPP(&npp);  PRLibrary* lib = nsnull;  lib = mInst->fLibrary;  NS_TRY_SAFE_CALL_VOID(CallNPP_StreamAsFileProc(callbacks->asfile,                                                   npp,                                                   &mNPStream,                                                   fileName), lib, mInst);  NPP_PLUGIN_LOG(PLUGIN_LOG_NORMAL,  ("NPP StreamAsFile called: this=%p, npp=%p, url=%s, file=%s\n",  this, npp, mNPStream.url, fileName));  return NS_OK;}