tests: gdkpixbufoverlay-test: use absolute positioning to fix demo

https://bugzilla.gnome.org/show_bug.cgi?id=739566
This commit is contained in:
Tim-Philipp Müller 2014-12-25 14:58:12 +00:00
parent b76595d67e
commit f0e8821f76

View file

@ -214,7 +214,9 @@ main (int argc, char **argv)
gst_util_set_object_arg (G_OBJECT (src), "pattern", "white"); gst_util_set_object_arg (G_OBJECT (src), "pattern", "white");
overlay = gst_element_factory_make ("gdkpixbufoverlay", NULL); overlay = gst_element_factory_make ("gdkpixbufoverlay", NULL);
g_object_set (overlay, "pixbuf", logo_pixbuf, NULL);
/* set positioning-mode to absolute so we can set negative positions */
g_object_set (overlay, "pixbuf", logo_pixbuf, "positioning-mode", 1, NULL);
sink_pad = gst_element_get_static_pad (overlay, "sink"); sink_pad = gst_element_get_static_pad (overlay, "sink");
gst_pad_add_probe (sink_pad, GST_PAD_PROBE_TYPE_BUFFER, buffer_cb, NULL, gst_pad_add_probe (sink_pad, GST_PAD_PROBE_TYPE_BUFFER, buffer_cb, NULL,