From f0e8821f76e3b82027e21a3b6f261d378d3aa906 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 25 Dec 2014 14:58:12 +0000 Subject: [PATCH] tests: gdkpixbufoverlay-test: use absolute positioning to fix demo https://bugzilla.gnome.org/show_bug.cgi?id=739566 --- tests/icles/gdkpixbufoverlay-test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/icles/gdkpixbufoverlay-test.c b/tests/icles/gdkpixbufoverlay-test.c index ec91c07..467bdbe 100644 --- a/tests/icles/gdkpixbufoverlay-test.c +++ b/tests/icles/gdkpixbufoverlay-test.c @@ -214,7 +214,9 @@ main (int argc, char **argv) gst_util_set_object_arg (G_OBJECT (src), "pattern", "white"); 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"); gst_pad_add_probe (sink_pad, GST_PAD_PROBE_TYPE_BUFFER, buffer_cb, NULL, -- 2.7.4