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.<br><br>Regards,<br>
Kwang Yul Seo<br><br>static void<br>gst_directdraw_sink_set_window_id (GstXOverlay * overlay, ULONG window_id)<br>{<br> GstDirectDrawSink *ddrawsink = GST_DIRECTDRAW_SINK (overlay);<br><br> GST_OBJECT_LOCK (ddrawsink);<br>
/* check if we are already using this window id */<br> if (ddrawsink->video_window == (HWND) window_id) {<br> GST_OBJECT_UNLOCK (ddrawsink);<br> return;<br> }<br> ...<br><br><br><br><div class="gmail_quote">
On Fri, Apr 25, 2008 at 1:41 AM, Andoni Morales <<a href="mailto:ylatuya@gmail.com">ylatuya@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi! <div>I'm trying to use the XOverlay interface on windows with Gtk whitn the directshow sink witch implements it.<div>In the XOverlay interface the method set_xwindow_id requires a ulong for the window id.</div><div>
On Linux I use the macro GDK_WINDOW_XID to get the window ID.</div><div>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.</div>
<div>How should I proceed to embed the video window on Windows?</div><div>Thanks</div><div><br></div></div>
<br>-------------------------------------------------------------------------<br>
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br>
Don't miss this year's exciting event. There's still time to save $100.<br>
Use priority code J8TL2D2.<br>
<a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>