mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +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/4778>
This commit is contained in:
parent
4d6a2dea89
commit
9b0736c85d
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue