rv = CleanUpStream(reason); }  if(rv != NPERR_NO_ERROR) return NS_ERROR_FAILURE;
if (callbacks->destroystream != NULL) {  #if !TARGET_CARBON   error = CallNPP_DestroyStreamProc(callbacks->destroystream, npp, &mNPStream, NPRES_DONE); if(error != NPERR_NO_ERROR) return NS_ERROR_FAILURE; #endif }
ns4xPluginStreamListener::OnStopBinding(nsIPluginStreamInfo* pluginInfo,                                         nsresult status){  if(!mInst || !mInst->IsStarted())    return NS_ERROR_FAILURE;  // check if the stream is of seekable type and later its destruction  // see bug 91140      nsresult rv = NS_OK;  if(mStreamType != nsPluginStreamType_Seek) {    NPReason reason = NPRES_DONE;    if (NS_FAILED(status))      reason = NPRES_NETWORK_ERR;   // since the stream failed, we need to tell the plugin that    rv = CleanUpStream(reason);  }    if(rv != NPERR_NO_ERROR)    return NS_ERROR_FAILURE;  return NS_OK;}