PPluginStream is badly named: there is going to be a PPluginStream, but it's not this!

This commit is contained in:
Benjamin Smedberg
2009-09-09 10:04:09 -04:00
parent 231058bee3
commit 88ab080bb4
14 changed files with 145 additions and 150 deletions

View File

@@ -37,7 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include "mozilla/plugins/PluginModuleParent.h"
#include "mozilla/plugins/PluginStreamParent.h"
#include "mozilla/plugins/BrowserStreamParent.h"
using mozilla::SharedLibrary;
@@ -274,13 +274,13 @@ PluginModuleParent::InstCast(NPP instance)
return ip;
}
PluginStreamParent*
BrowserStreamParent*
PluginModuleParent::StreamCast(NPP instance,
NPStream* s)
{
PluginInstanceParent* ip = InstCast(instance);
PluginStreamParent* sp =
static_cast<PluginStreamParent*>(s->pdata);
BrowserStreamParent* sp =
static_cast<BrowserStreamParent*>(s->pdata);
if (sp->mNPP != ip || s != sp->mStream) {
NS_RUNTIMEABORT("Corrupted plugin stream data.");
}