Skip to content

Commit

Permalink
Pass the SWF url to gnash
Browse files Browse the repository at this point in the history
  • Loading branch information
alexp-sssup committed Jul 26, 2010
1 parent 67252aa commit 9da5804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin-dir/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,7 @@ nsPluginInstance::nsPluginInstance(NPP aInstance, int16_t argc, char** argn, cha
{
m_sys->parseParametersFromFlashvars(argv[i]);
}
else if(strcasecmp(argn[i],"src")==0)
{
m_sys->setOrigin(argv[i]);
}
//The SWF file url should be getted from NewStream
}
m_sys->downloadManager=new NPDownloadManager(mInstance);
m_sys->addJob(m_pt);
Expand Down Expand Up @@ -319,6 +316,7 @@ NPError nsPluginInstance::NewStream(NPMIMEType type, NPStream* stream, NPBool se
else
{
//This is the main file
m_sys->setOrigin(stream->url);
*stype=NP_ASFILE;
}
//The downloader is set as the private data for this stream
Expand Down
2 changes: 2 additions & 0 deletions swf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ void SystemState::createEngines()
bufWidth,
strdup("-k"), //Height
bufHeight,
strdup("-u"), //SWF url
strdup(origin.raw_buf()),
strdup("-vv"),
strdup(dumpedSWFPath.raw_buf()), //SWF file
NULL
Expand Down

0 comments on commit 9da5804

Please sign in to comment.