diff -up gnash-0.8.1/plugin/plugin.cpp.old gnash-0.8.1/plugin/plugin.cpp --- gnash-0.8.1/plugin/plugin.cpp.old 2007-08-18 18:48:54.000000000 +0200 +++ gnash-0.8.1/plugin/plugin.cpp 2007-10-15 10:44:16.000000000 +0200 @@ -490,6 +490,14 @@ nsPluginInstance::startProc(Window win) procname = gnash_env; } + const char* pageurl = getCurrentPageURL(); + if ( ! pageurl ) + { + cout << "Could not get current page URL!" << endl; + //log_msg("UNIMPLEMENTED: current page url: %s", pageurl); + // invoke gnash with -U + } + struct stat procstats; // See if the file actually exists, otherwise we can't spawn it @@ -558,13 +566,6 @@ nsPluginInstance::startProc(Window win) // setup the command line - const char* pageurl = getCurrentPageURL(); - if ( ! pageurl ) - { - cout << "Could not get current page URL!" << endl; - //log_msg("UNIMPLEMENTED: current page url: %s", pageurl); - // invoke gnash with -U - } const size_t buf_size = 30; char xid[buf_size], width[buf_size], height[buf_size];