]> git.saurik.com Git - wxWidgets.git/commitdiff
compile fix
authorRobert Roebling <robert@roebling.de>
Tue, 13 Nov 2007 13:07:29 +0000 (13:07 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 13 Nov 2007 13:07:29 +0000 (13:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mediactrl.cpp

index d902f72b2b0a68a8a282c7a9b41a73300926250f..2a333c38185f579c36c84bc9593c3e920968b441 100644 (file)
@@ -976,7 +976,11 @@ bool wxGStreamerMediaBackend::CreateControl(wxControl* ctrl, wxWindow* parent,
     char **argvGST = new char*[wxTheApp->argc + 1];
     for ( i = 0; i < wxTheApp->argc; i++ )
     {
+#if wxUSE_UNICODE_WCHAR
         argvGST[i] = wxStrdupA(wxConvUTF8.cWX2MB(wxTheApp->argv[i]));
+#else
+        argvGST[i] = wxStrdupA(wxTheApp->argv[i].utf8_str());
+#endif
     }
 
     argvGST[wxTheApp->argc] = NULL;