mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
d3d11convert: protect 'add-borders' with mutex
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4652>
This commit is contained in:
parent
4306a6822d
commit
d0268db7e4
1 changed files with 4 additions and 3 deletions
|
@ -1889,11 +1889,12 @@ static void
|
|||
gst_d3d11_base_convert_set_add_border (GstD3D11BaseConvert * self,
|
||||
gboolean add_border)
|
||||
{
|
||||
gboolean prev = self->add_borders;
|
||||
GstD3D11SRWLockGuard lk (&self->lock);
|
||||
|
||||
self->add_borders = add_border;
|
||||
if (prev != self->add_borders)
|
||||
if (add_border != self->add_borders) {
|
||||
self->add_borders = add_border;
|
||||
gst_base_transform_reconfigure_src (GST_BASE_TRANSFORM_CAST (self));
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue