dfbvideosink gtk application

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dfbvideosink gtk application

Michael Trimarchi
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?

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: dfbvideosink gtk application

Michael Trimarchi
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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel