vapostproc: fix wrong video orientation after restarting the element

After READY -> NULL -> READY state change, the configured video
orientation didn't get applied on the new GstVaFilter instance.

Resettig prev_direction to default value in update_properties ensures
gst_va_filter_set_orientation() isn't inadvertently skipped.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8871>
This commit is contained in:
Jakub Adam 2025-04-21 22:59:18 +02:00
parent fe7cb2e5b1
commit c8a802772c

View File

@ -432,6 +432,10 @@ gst_va_vpp_update_properties (GstVaBaseTransform * btrans)
GstVaVpp *self = GST_VA_VPP (btrans); GstVaVpp *self = GST_VA_VPP (btrans);
gst_va_vpp_rebuild_filters (self); gst_va_vpp_rebuild_filters (self);
/* resetting prev_direction ensures the orientation is actually applied to
* the new instance of GstVaFilter we are configuring here */
self->prev_direction = GST_VIDEO_ORIENTATION_IDENTITY;
_update_properties_unlocked (self); _update_properties_unlocked (self);
} }