Init the X11 threads as first thing on X11 in the GTK sample
This commit is contained in:
parent
865476e5fc
commit
a9ebf7e38e
@ -19,6 +19,9 @@ public class MainWindow : Gtk.Window {
|
|||||||
bool _pipelineOK = false;
|
bool _pipelineOK = false;
|
||||||
|
|
||||||
public static void Main (string[] args) {
|
public static void Main (string[] args) {
|
||||||
|
if (System.Environment.OSVersion.Platform == PlatformID.Unix)
|
||||||
|
XInitThreads ();
|
||||||
|
|
||||||
Gtk.Application.Init ();
|
Gtk.Application.Init ();
|
||||||
Gst.Application.Init ();
|
Gst.Application.Init ();
|
||||||
MainWindow window = new MainWindow ();
|
MainWindow window = new MainWindow ();
|
||||||
@ -262,4 +265,7 @@ public class MainWindow : Gtk.Window {
|
|||||||
[DllImport ("libgdk-win32-2.0-0.dll") ]
|
[DllImport ("libgdk-win32-2.0-0.dll") ]
|
||||||
static extern bool gdk_window_ensure_native (IntPtr handle);
|
static extern bool gdk_window_ensure_native (IntPtr handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
[DllImport ("libX11.so.6")]
|
||||||
|
static extern int XInitThreads ();
|
||||||
}
|
}
|
||||||
|
3
samples/gtk-video-player.exe.config
Normal file
3
samples/gtk-video-player.exe.config
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<configuration>
|
||||||
|
<dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-2.0.so.0"/>
|
||||||
|
</configuration>
|
Loading…
x
Reference in New Issue
Block a user