[totem] browser-plugin: Create a command queue earlier



commit baa50e4bf3b404225e1154a2caaa5ce47ac9c14a
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Dec 4 16:26:31 2011 +0100

    browser-plugin: Create a command queue earlier

 browser-plugin/totemPlugin.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/browser-plugin/totemPlugin.cpp b/browser-plugin/totemPlugin.cpp
index 780a228..ef6407e 100644
--- a/browser-plugin/totemPlugin.cpp
+++ b/browser-plugin/totemPlugin.cpp
@@ -638,8 +638,6 @@ totemPlugin::ViewerFork ()
 					reinterpret_cast<void*>(this),
 					NULL);
 
-	mQueue = g_queue_new ();
-
 	/* Set mViewerFD nonblocking */
 	fcntl (mViewerFD, F_SETFL, O_NONBLOCK);
 
@@ -1823,6 +1821,8 @@ totemPlugin::Init (NPMIMEType mimetype,
 	 * error code from the NewStream function.
 	 */
 
+	mQueue = g_queue_new ();
+
 	NPError err;
         err = NPN_GetValue (mNPP,
                             NPNVPluginElementNPObject,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]