mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
parent
5440ae3c18
commit
b0f4085f22
1 changed files with 3 additions and 2 deletions
|
@ -143,6 +143,7 @@
|
|||
* <title>GstXOverlay and Gtk+</title>
|
||||
* <para>
|
||||
* |[
|
||||
* #include <gst/interfaces/xoverlay.h>
|
||||
* #include <gtk/gtk.h>
|
||||
* #ifdef GDK_WINDOWING_X11
|
||||
* #include <gdk/gdkx.h> // for GDK_WINDOW_XID
|
||||
|
@ -184,7 +185,7 @@
|
|||
* #endif
|
||||
*
|
||||
* #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
|
||||
* }
|
||||
* ...
|
||||
|
@ -212,7 +213,7 @@
|
|||
* // 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
|
||||
* // 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
|
||||
* g_assert (video_window_xid != 0);
|
||||
|
|
Loading…
Reference in a new issue