How to embed video in GTK+ application window using GStreamer & XOverlay?
I am trying to write a small media player using GTK+ and GStreamer and currently using the XOverlay Interface to embed the video in a GtkDrawing Area INSIDE the mainwindow. The program was compiled using this command: g++ /home/phongcao/cacao.cc -o /home/phongcao/cacao `pkg-config --cflags --libs gtk+-2.0 gstreamer-0.10 gstreamer-plugins-base-0.10 gstreamer-interfaces-0.10` The problem is that the video was displayed in a SEPARATED window (instead of under the toolbar of the main window): Here is the source code of the program: #include <gst/interfaces/xoverlay.h> #include <gtk/gtk.h> #include