mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
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:
parent
107c456c0d
commit
2dc0e1ac87
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue