mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
parent
5440ae3c18
commit
b0f4085f22
1 changed files with 3 additions and 2 deletions
|
@ -143,6 +143,7 @@
|
||||||
* <title>GstXOverlay and Gtk+</title>
|
* <title>GstXOverlay and Gtk+</title>
|
||||||
* <para>
|
* <para>
|
||||||
* |[
|
* |[
|
||||||
|
* #include <gst/interfaces/xoverlay.h>
|
||||||
* #include <gtk/gtk.h>
|
* #include <gtk/gtk.h>
|
||||||
* #ifdef GDK_WINDOWING_X11
|
* #ifdef GDK_WINDOWING_X11
|
||||||
* #include <gdk/gdkx.h> // for GDK_WINDOW_XID
|
* #include <gdk/gdkx.h> // for GDK_WINDOW_XID
|
||||||
|
@ -184,7 +185,7 @@
|
||||||
* #endif
|
* #endif
|
||||||
*
|
*
|
||||||
* #ifdef GDK_WINDOWING_X11
|
* #ifdef GDK_WINDOWING_X11
|
||||||
* video_window_xid = GDK_WINDOW_XID (video_window->window);
|
* video_window_xid = GDK_WINDOW_XID (gtk_widget_get_window (video_window));
|
||||||
* #endif
|
* #endif
|
||||||
* }
|
* }
|
||||||
* ...
|
* ...
|
||||||
|
@ -212,7 +213,7 @@
|
||||||
* // realize window now so that the video window gets created and we can
|
* // realize window now so that the video window gets created and we can
|
||||||
* // obtain its XID before the pipeline is started up and the videosink
|
* // obtain its XID before the pipeline is started up and the videosink
|
||||||
* // asks for the XID of the window to render onto
|
* // asks for the XID of the window to render onto
|
||||||
* gtk_widget_realize (window);
|
* gtk_widget_realize (video_window);
|
||||||
*
|
*
|
||||||
* // we should have the XID now
|
* // we should have the XID now
|
||||||
* g_assert (video_window_xid != 0);
|
* g_assert (video_window_xid != 0);
|
||||||
|
|
Loading…
Reference in a new issue