GNOME Bugzilla – Bug 665430
The example code for using gstxoverlay in gtk+ has typos
Last modified: 2011-12-05 08:38:59 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);
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.