tests: elements: rotate orientation event

This commit is contained in:
Víctor Manuel Jáquez Leal 2016-07-05 20:59:49 +02:00
parent da4d916a8c
commit 2310273a69

View file

@ -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);