Hi!
I'm trying to use the XOverlay interface on windows with Gtk whitn the directshow sink witch implements it.
In the XOverlay interface the method set_xwindow_id requires a ulong for the window id.
On Linux I use the macro GDK_WINDOW_XID to get the window ID. Instead on Windows I should use the macro GDK_WINDOW_HWND(win) but it's return a HWND value that I can't use in the set_xwindow_id method.
How should I proceed to embed the video window on Windows? Thanks ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In gst_directdraw_sink_set_window_id function, window_id is casted to HWND before it it used. Thus, just cast the window ID you got from GDK_WINDOW_HWND(win) to HWND before you pass it to set_window_id.
Regards, Kwang Yul Seo static void gst_directdraw_sink_set_window_id (GstXOverlay * overlay, ULONG window_id) { GstDirectDrawSink *ddrawsink = GST_DIRECTDRAW_SINK (overlay); GST_OBJECT_LOCK (ddrawsink); /* check if we are already using this window id */ if (ddrawsink->video_window == (HWND) window_id) { GST_OBJECT_UNLOCK (ddrawsink); return; } ...
On Fri, Apr 25, 2008 at 1:41 AM, Andoni Morales <[hidden email]> wrote: Hi! ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |