]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/mediactrl.cpp
Documenting WX_MONOLITHIC build option.
[wxWidgets.git] / src / unix / mediactrl.cpp
index b461f9d96571f3d60c154370de0e036ca644a2b5..d637d4cf3b26d2cfb940483e0e9b80c0ed470fd8 100644 (file)
@@ -990,7 +990,30 @@ bool wxGStreamerMediaBackend::CreateControl(wxControl* ctrl, wxWindow* parent,
     //
     //init gstreamer
     //
+#if wxUSE_UNICODE
+    int i;
+    char **argvGST = new char*[wxTheApp->argc + 1];
+    for ( i = 0; i < wxTheApp->argc; i++ )
+    {
+        argvGST[i] = wxStrdupA(wxConvUTF8.cWX2MB(wxTheApp->argv[i]));
+    }
+
+    argvGST[wxTheApp->argc] = NULL;
+
+    int argcGST = wxTheApp->argc;
+
+    gst_init(&argcGST, &argvGST);
+
+    // free our copy
+    for ( i = 0; i < argcGST; i++ )
+    {
+        free(argvGST[i]);
+    }
+
+    delete [] argvGST;
+#else
     gst_init(&wxTheApp->argc, &wxTheApp->argv);
+#endif
 
     //
     // wxControl creation