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/4796>
This commit is contained in:
Guillaume Desmottes 2023-06-06 11:34:03 +02:00
parent 107c456c0d
commit 2dc0e1ac87

View file

@ -1788,6 +1788,12 @@ gst_video_flip_sink_event (GstBaseTransform * trans, GstEvent * event)
if (gst_video_orientation_from_tag (taglist, &method)) {
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);
}
}
break;
default: