docs: fix up some more GstXOverlay -> GstVideoOverlay

https://bugzilla.gnome.org/show_bug.cgi?id=689740
This commit is contained in:
Tim-Philipp Müller 2012-12-10 13:35:37 +00:00
parent 0bb5c6c012
commit e05abf0ef1
10 changed files with 20 additions and 19 deletions

View file

@ -141,7 +141,7 @@
* <title>GstVideoOverlay and Gtk+</title>
* <para>
* |[
* #include &lt;gst/video/xoverlay.h&gt;
* #include &lt;gst/video/videooverlay.h&gt;
* #include &lt;gtk/gtk.h&gt;
* #ifdef GDK_WINDOWING_X11
* #include &lt;gdk/gdkx.h&gt; // for GDK_WINDOW_XID
@ -160,11 +160,11 @@
* return GST_BUS_PASS;
*
* if (video_window_handle != 0) {
* GstXOverlay *xoverlay;
* GstVideoOverlay *overlay;
*
* // GST_MESSAGE_SRC (message) will be the video sink element
* xoverlay = GST_X_OVERLAY (GST_MESSAGE_SRC (message));
* gst_x_overlay_set_window_handle (xoverlay, video_window_handle);
* overlay = GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (message));
* gst_video_overlay_set_window_handle (overlay, video_window_handle);
* } else {
* g_warning ("Should have obtained video_window_handle by now!");
* }
@ -339,7 +339,7 @@ gst_video_overlay_get_type (void)
* @handle: a handle referencing the window.
*
* This will call the video overlay's set_window_handle method. You
* should use this method to tell to a XOverlay to display video output to a
* should use this method to tell to an overlay to display video output to a
* specific window (e.g. an XWindow on X11). Passing 0 as the @handle will
* tell the overlay to stop using that window and create an internal one.
*/
@ -441,7 +441,7 @@ gst_video_overlay_expose (GstVideoOverlay * overlay)
* events are forwarded upstream as navigation events. In some window system,
* events are not propagated in the window hierarchy if a client is listening
* for them. This method allows you to disable events handling completely
* from the XOverlay.
* from the #GstVideoOverlay.
*/
void
gst_video_overlay_handle_events (GstVideoOverlay * overlay,

View file

@ -118,7 +118,7 @@ struct _GstXContext
* @width: the width in pixels of Window @win
* @height: the height in pixels of Window @win
* @internal: used to remember if Window @win was created internally or passed
* through the #GstXOverlay interface
* through the #GstVideoOverlay interface
* @gc: the Graphical Context of Window @win
*
* Structure used to store informations about a Window.
@ -147,7 +147,7 @@ struct _GstXWindow
* @x_lock: used to protect X calls as we are not using the XLib in threaded
* mode
* @flow_lock: used to protect data flow routines from external calls such as
* events from @event_thread or methods from the #GstXOverlay interface
* events from @event_thread or methods from the #GstVideoOverlay interface
* @par: used to override calculated pixel aspect ratio from @xcontext
* @pool_lock: used to protect the buffer pool
* @buffer_pool: a list of #GstXImageBuffer that could be reused at next buffer

View file

@ -25,9 +25,10 @@
* using the XVideo extension. Rendering to a remote display is theoretically
* possible but i doubt that the XVideo extension is actually available when
* connecting to a remote display. This element can receive a Window ID from the
* application through the XOverlay interface and will then render video frames
* in this drawable. If no Window ID was provided by the application, the
* element will create its own internal window and render into it.
* application through the #GstVideoOverlay interface and will then render
* video frames in this drawable. If no Window ID was provided by the
* application, the element will create its own internal window and render
* into it.
*
* <refsect2>
* <title>Scaling</title>

View file

@ -140,7 +140,7 @@ struct _GstXContext
* @width: the width in pixels of Window @win
* @height: the height in pixels of Window @win
* @internal: used to remember if Window @win was created internally or passed
* through the #GstXOverlay interface
* through the #GstVideoOverlay interface
* @gc: the Graphical Context of Window @win
*
* Structure used to store informations about a Window.
@ -182,7 +182,7 @@ struct _GstXvImageFormat
* @x_lock: used to protect X calls as we are not using the XLib in threaded
* mode
* @flow_lock: used to protect data flow routines from external calls such as
* events from @event_thread or methods from the #GstXOverlay interface
* events from @event_thread or methods from the #GstVideoOverlay interface
* @par: used to override calculated pixel aspect ratio from @xcontext
* @pool_lock: used to protect the buffer pool
* @image_pool: a list of #GstXvImageBuffer that could be reused at next buffer

View file

@ -119,7 +119,7 @@ main (int argc, char **argv)
g_signal_connect (G_OBJECT (window), "delete-event",
G_CALLBACK (window_closed), (gpointer) pipeline);
gtk_window_set_default_size (GTK_WINDOW (window), 320, 240);
gtk_window_set_title (GTK_WINDOW (window), "GstXOverlay Gtk+ demo");
gtk_window_set_title (GTK_WINDOW (window), "GstVideoOverlay Gtk+ demo");
video_window = gtk_drawing_area_new ();
gtk_widget_set_double_buffered (video_window, FALSE);

View file

@ -100,7 +100,7 @@ int main(int argc, char *argv[])
QWidget window;
window.resize(320, 240);
window.setWindowTitle("GstXOverlay Qt demo");
window.setWindowTitle("GstVideoOverlay Qt demo");
window.show();
WId xwinid = window.winId();

View file

@ -113,7 +113,7 @@ int main( int argc, char **argv )
QGraphicsView view( &scene );
view.resize(320, 240);
view.setWindowTitle("GstXOverlay Qt GraphicsView demo");
view.setWindowTitle("GstVideoOverlay Qt GraphicsView demo");
view.show();
gst_init (&argc, &argv);

View file

@ -2118,7 +2118,7 @@ realize_cb (GtkWidget * widget, PlaybackApp * app)
/* This is here just for pedagogical purposes, GDK_WINDOW_XID will call it
* as well */
if (!gdk_window_ensure_native (window))
g_error ("Couldn't create native window needed for GstXOverlay!");
g_error ("Couldn't create native window needed for GstVideoOverlay!");
#if defined (GDK_WINDOWING_WIN32)
app->embed_xid = GDK_WINDOW_HWND (window);

View file

@ -2476,7 +2476,7 @@ realize_cb (GtkWidget * widget, gpointer data)
/* This is here just for pedagogical purposes, GDK_WINDOW_XID will call it
* as well */
if (!gdk_window_ensure_native (window))
g_error ("Couldn't create native window needed for GstXOverlay!");
g_error ("Couldn't create native window needed for GstVideoOverlay!");
#ifdef HAVE_X
embed_xid = GDK_WINDOW_XID (window);

View file

@ -99,7 +99,7 @@ realize_cb (GtkWidget * widget, gpointer data)
/* This is here just for pedagogical purposes, GDK_WINDOW_XID will call it
* as well */
if (!gdk_window_ensure_native (window))
g_error ("Couldn't create native window needed for GstXOverlay!");
g_error ("Couldn't create native window needed for GstVideoOverlay!");
embed_xid = GDK_WINDOW_XID (window);
g_print ("Window realize: video window XID = %lu\n", embed_xid);