mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
tests: elements: rotate orientation event
This commit is contained in:
parent
da4d916a8c
commit
2310273a69
1 changed files with 5 additions and 1 deletions
|
@ -19,9 +19,13 @@ send_rotate_event (AppData * data)
|
||||||
{
|
{
|
||||||
gboolean res = FALSE;
|
gboolean res = FALSE;
|
||||||
GstEvent *event;
|
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,
|
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 */
|
/* Send the event */
|
||||||
res = gst_pad_push_event (data->src_pad, event);
|
res = gst_pad_push_event (data->src_pad, event);
|
||||||
|
|
Loading…
Reference in a new issue