diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-07-05 20:59:49 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-07-05 21:01:52 +0200 |
commit | 2310273a697f9dfb11821d7315a27e754f398907 (patch) | |
tree | d73159863dfb02e3343a0eb2a4596fed0301d538 /tests | |
parent | da4d916a8c0ee2fa5c3b7ac66470736629d25965 (diff) |
tests: elements: rotate orientation event
Diffstat (limited to 'tests')
-rw-r--r-- | tests/elements/test-vaapisink.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/elements/test-vaapisink.c b/tests/elements/test-vaapisink.c index 7167aecf..441a991e 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); |