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>&nbsp; GstDirectDrawSink *ddrawsink = GST_DIRECTDRAW_SINK (overlay);<br><br>&nbsp; GST_OBJECT_LOCK (ddrawsink);<br>
&nbsp; /* check if we are already using this window id */<br>&nbsp; if (ddrawsink-&gt;video_window == (HWND) window_id) {<br>&nbsp;&nbsp;&nbsp; GST_OBJECT_UNLOCK (ddrawsink);<br>&nbsp;&nbsp;&nbsp; return;<br>&nbsp; }<br>&nbsp; ...<br><br><br><br><div class="gmail_quote">
On Fri, Apr 25, 2008 at 1:41 AM, Andoni Morales &lt;<a href="mailto:ylatuya@gmail.com">ylatuya@gmail.com</a>&gt; 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!&nbsp;<div>I&#39;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 &nbsp;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&#39;s return a HWND value that I can&#39;t use in the set_xwindow_id method.</div>

<div>How should I proceed to embed the video window &nbsp;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&#39;t miss this year&#39;s exciting event. There&#39;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>