mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
tests: gdkpixbufoverlay-test: use absolute positioning to fix demo
https://bugzilla.gnome.org/show_bug.cgi?id=739566
This commit is contained in:
parent
b76595d67e
commit
f0e8821f76
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue