[maemo-developers] [maemo-developers] gtk, gstreamer movie window = problem

From: Kalle Vahlman kalle.vahlman at gmail.com
Date: Tue Oct 24 14:52:38 EEST 2006
2006/10/23, cmonst <cmonst at gmail.com>:
> Hi!
> In my gstreamer movie player I have connected gstreamer movie window
> with gtk menu (gstreamer window is inside gtk app window) using this
> code:
> static void
> cb_expose (GtkWidget * w, GdkEventExpose * ev, GstElement * e)
> {
>   if (GST_IS_X_OVERLAY (e) &&
>     gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (e),
>         GDK_WINDOW_XWINDOW (w->window));
>         }
> }
> (...)
> g_signal_connect (content, "expose-event", G_CALLBACK (cb_expose),videosink );

As described in

you need to set it in a message handler in order to set it at the right time.

> Everything is ok when I start app (movie window is in right place in
> app window) but when I click on some item on maemo system menu (right
> top border of the screen ) eg. volume control and I click back on my
> app, window with my gtk elements disappears (probably is killed) and
> gstreamer movie window is the only window left from my app (it looks
> like when you start raw pipeline with some movie, without any
> additional gtk elements).

This sounds indeed like the element creates the window itself instead
of using the one you want.

Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi

More information about the maemo-developers mailing list