if (!mStreamConverter) return NS_ERROR_FAILURE;  nsCOMPtr<nsIStreamListener> finalStreamListener = do_QueryReferent(mWeakPtrPluginStreamListenerPeer); if (!finalStreamListener) return NS_ERROR_FAILURE;  return mStreamConverter->OnDataAvailable(request, ctxt, inStr, sourceOffset, count);
PRUint32 readlen; char* buffer = (char*) PR_Malloc(aLength);   if(!buffer) return NS_ERROR_OUT_OF_MEMORY;  nsresult rv = aIStream->Read(buffer, aLength, &readlen);  NS_ASSERTION(aLength == readlen, "nsCacheListener->OnDataAvailable: " "readlen != aLength");  PR_Free(buffer); return rv;
nsPluginByteRangeStreamListener::OnDataAvailable(nsIRequest *request, nsISupports *ctxt,                                nsIInputStream *inStr, PRUint32 sourceOffset, PRUint32 count){  if (!mStreamConverter)    return NS_ERROR_FAILURE;    nsCOMPtr<nsIStreamListener> finalStreamListener = do_QueryReferent(mWeakPtrPluginStreamListenerPeer);  if (!finalStreamListener)    return NS_ERROR_FAILURE;        return mStreamConverter->OnDataAvailable(request, ctxt, inStr, sourceOffset, count);}