[gst-devel] Using XOverlay on Windows

KwangYul Seo kwangyul.seo at gmail.com
Fri Apr 25 04:14:09 CEST 2008

 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.

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);

On Fri, Apr 25, 2008 at 1:41 AM, Andoni Morales <ylatuya at gmail.com> wrote:

> 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
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080425/aef6ac5b/attachment.htm>

More information about the gstreamer-devel mailing list