[gstreamer-bugs] [Bug 599885] [gtk examples] unstable behaviour with recent gtk (post csw merge)

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Nov 4 09:24:48 PST 2009


https://bugzilla.gnome.org/show_bug.cgi?id=599885
  GStreamer | gst-plugins-gl | git

--- Comment #7 from Filippo Argiolas <fargiolas at gnome.org> 2009-11-04 18:24:45 CET ---
(In reply to comment #6)
> Actually, I was doing something else and it was finally a good test about this
> bug.
> On win32, in the "realize" callback of a GtkDrawinArea,
> GDK_WINDOW_HWND(area->window) return the native handle of the parent (here the
> main window)
> Calling gdk_window_ensure_native(area->window) just before it, causes
> GDK_WINDOW_HWND(area->window) to return the correct native handle of the
> drawing area.
> Sothe "realize" callback is not the correct place to avoid the call of
> gdk_window_ensure_native (and I do not know if it's really possible to avoid it
> in our case, and on win32)

I never said to avoid the ensure_native, I said to put it in the realize
callback (the widget needs to be realized to have a window, so that's probably
the best place to call it). Then you can probably just call GDK_WINDOW_HWND
from any thread since it will just return the native handle. If you want to
stay safe you can save the window handle right after the ensure_native call and
give that to gstxoverlay.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list