[gst-devel] How to set a parent Windows ID for directdrawsink

Thomas Winkler wi-tom at gmx.de
Tue Jun 17 18:46:38 CEST 2008


Hi all,

 

I found a way to set the Window ID using following code:

 

GstXOverlay* ov = (GstXOverlay*)ddrawsink;

gst_x_overlay_set_xwindow_id(ov, my_window_id);

 

where ddrawsink is my GstElement and my_window_id is the ID of the parent
Window I would render to.

 

  _____  

Von: gstreamer-devel-bounces at lists.sourceforge.net
[mailto:gstreamer-devel-bounces at lists.sourceforge.net] Im Auftrag von Thomas
Winkler
Gesendet: Dienstag, 17. Juni 2008 17:44
An: gstreamer-devel at lists.sourceforge.net
Betreff: [gst-devel] How to set a parent Windows ID for directdrawsink

 

Hi all,

 

gst-plugins-good contains "directdrawsink" as synonym of "xvimagesink" for
Windows OS and works properly for me.

I have read the Reference Documentation about "directdrawsink" on

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-pl
ugins/html/gst-plugins-good-plugins-directdrawsink.html

 

The Description for that Element is:

"DirectdrawSink renders video RGB frames to any win32 window. This element
can receive a window ID from the application through the XOverlay interface
and will then render video frames in this window. If no Window ID was
provided by the application, the element will create its own internal window
and render into it."

 

My Question is how to set the Window ID. The only property I found is
"force-aspect-ratio".

 

So, what can I do to tell my "directdrawsink" the Window ID from my
Application Window?

 

Best regards,

Thomas



__________ NOD32 3194 (20080617) Information __________

Diese E-Mail wurde vom NOD32 antivirus system gepr|ft
http://www.nod32.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080617/b749c323/attachment.htm>


More information about the gstreamer-devel mailing list