xoverlay: Fix mistakes in the sample code

Fixes bug #665430.
This commit is contained in:
Sebastian Dröge 2011-12-05 09:38:33 +01:00
parent 5440ae3c18
commit b0f4085f22

View file

@ -143,6 +143,7 @@
* <title>GstXOverlay and Gtk+</title> * <title>GstXOverlay and Gtk+</title>
* <para> * <para>
* |[ * |[
* #include &lt;gst/interfaces/xoverlay.h&gt;
* #include &lt;gtk/gtk.h&gt; * #include &lt;gtk/gtk.h&gt;
* #ifdef GDK_WINDOWING_X11 * #ifdef GDK_WINDOWING_X11
* #include &lt;gdk/gdkx.h&gt; // for GDK_WINDOW_XID * #include &lt;gdk/gdkx.h&gt; // 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);