[gst-devel] dfbvideosink gtk application
Michael Trimarchi
michael at panicking.kicks-ass.org
Mon Feb 7 17:37:52 CET 2011
Hi
On 02/07/2011 04:31 PM, Michael Trimarchi wrote:
> Hi all,
>
> I'm trying to use gstreamer on a gtk-directfb application. In order to give a surface to the
> videosink, I create a drawarea
>
> video = gtk_drawing_area_new ();
>
> and give it to the
>
> GdkWindow *_window;
> _window = gtk_widget_get_parent_window (video);
>
> ww = gdk_directfb_surface_lookup (_window)
>
> g_object_set (G_OBJECT (videosink), "surface", ww, NULL);
>
> The plugin can show the video but it overlap part of the gtk application on the screen
> Any idea?
Ok, guys I have fixed the issue.
IDirectFBSurface *surface = ww;
const DFBRectangle rect = { 20, 0, 280, 190 };
IDirectFBSurface *clip;
surface->GetSubSurface(ww, &rect, &clip);
I have clipped the region and now it works
Michael Trimarchi
>
> Michael Trimarchi
>
> ------------------------------------------------------------------------------
> The modern datacenter depends on network connectivity to access resources
> and provide services. The best practices for maximizing a physical server's
> connectivity to a physical network are well understood - see how these
> rules translate into the virtual world?
> http://p.sf.net/sfu/oracle-sfdevnlfb
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list