After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665430 - The example code for using gstxoverlay in gtk+ has typos
The example code for using gstxoverlay in gtk+ has typos
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
0.10.x
Other Linux
: Normal normal
: 0.10.36
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-02 20:26 UTC by "Op" Philip Flarsheim
Modified: 2011-12-05 08:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description "Op" Philip Flarsheim 2011-12-02 20:26:47 UTC
The documentation found at:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstxoverlay.html

I ran into some bugs when attempting to use the example code for gtk+

missing an include
    #include <gst/interfaces/xoverlay.h>

for gtk+-3 line 42 should read
    video_window_xid = GDK_WINDOW_XID(gtk_widget_get_window(widget));

typo on line 42 for older versions of gtk+ (didn't test this one but pretty confident)
    video_window_xid = GDK_WINDOW_XID (widget->window);

typo on line 70
    gtk_widget_realize (video_window);
Comment 1 Sebastian Dröge (slomo) 2011-12-05 08:38:59 UTC
commit b0f4085f229d02f656ebbf1349c5c7681ce96557
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Mon Dec 5 09:38:33 2011 +0100

    xoverlay: Fix mistakes in the sample code
    
    Fixes bug #665430.