videoflip: update orientation tag in auto mode

The frames are flipped according to the tag orientation so it's no longer accurate.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4778>
This commit is contained in:
Guillaume Desmottes 2023-06-06 11:34:03 +02:00 committed by GStreamer Marge Bot
parent 4d6a2dea89
commit 9b0736c85d

View file

@ -1801,6 +1801,12 @@ gst_video_flip_sink_event (GstBaseTransform * trans, GstEvent * event)
} else {
gst_video_flip_set_method (vf, method, TRUE);
}
if (vf->method == GST_VIDEO_ORIENTATION_AUTO) {
/* update the orientation tag as we rotate the video accordingly */
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, "image-orientation",
"rotate-0", NULL);
}
} else {
// no orientation in tag
if (gst_tag_list_get_scope (taglist) == GST_TAG_SCOPE_STREAM) {