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:
parent
fe7cb2e5b1
commit
c8a802772c
@ -432,6 +432,10 @@ gst_va_vpp_update_properties (GstVaBaseTransform * btrans)
|
||||
GstVaVpp *self = GST_VA_VPP (btrans);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user