From 2310273a697f9dfb11821d7315a27e754f398907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 5 Jul 2016 20:59:49 +0200 Subject: [PATCH] tests: elements: rotate orientation event --- tests/elements/test-vaapisink.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/elements/test-vaapisink.c b/tests/elements/test-vaapisink.c index 7167aecfa1..441a991e12 100644 --- a/tests/elements/test-vaapisink.c +++ b/tests/elements/test-vaapisink.c @@ -19,9 +19,13 @@ send_rotate_event (AppData * data) { gboolean res = FALSE; GstEvent *event; + static gint counter = 0; + const static gchar *tags[] = { "rotate-90", "rotate-180", "rotate-270", + "rotate-0" + }; event = gst_event_new_tag (gst_tag_list_new (GST_TAG_IMAGE_ORIENTATION, - "rotate-90", NULL)); + tags[counter++ % G_N_ELEMENTS (tags)], NULL)); /* Send the event */ res = gst_pad_push_event (data->src_pad, event);