* Boston, MA 02111-1307, USA.
*/
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
#include <gst/gst.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include "../gstgtk.h"
-#include <gst/interfaces/xoverlay.h>
+#include <gst/video/videooverlay.h>
static gint delay = 0;
static gint saveddelay = 0;
static GstBusSyncReply
create_window (GstBus * bus, GstMessage * message, GtkWidget * widget)
{
- // ignore anything but 'prepare-xwindow-id' element messages
+ // ignore anything but 'prepare-window-handle' element messages
if (GST_MESSAGE_TYPE (message) != GST_MESSAGE_ELEMENT)
return GST_BUS_PASS;
- if (!gst_structure_has_name (message->structure, "prepare-xwindow-id"))
+ if (!gst_is_video_overlay_prepare_window_handle_message (message))
return GST_BUS_PASS;
- gst_x_overlay_set_gtk_window (GST_X_OVERLAY (GST_MESSAGE_SRC (message)),
- widget);
+ gst_video_overlay_set_gtk_window (GST_VIDEO_OVERLAY (GST_MESSAGE_SRC
+ (message)), widget);
gst_message_unref (message);
static gboolean
expose_cb (GtkWidget * widget, GdkEventExpose * event, GstElement * videosink)
{
- gst_x_overlay_expose (GST_X_OVERLAY (videosink));
+ gst_video_overlay_expose (GST_VIDEO_OVERLAY (videosink));
return FALSE;
}
if (source_desc == NULL) {
source_desc =
g_strdup
- ("videotestsrc ! video/x-raw-rgb, width=352, height=288 ! identity");
+ ("videotestsrc ! video/x-raw, width=352, height=288 ! identity");
}
sourcebin =