mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
d3d11convert: protect 'add-borders' with mutex
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4205>
This commit is contained in:
parent
1b926e0dcc
commit
4c9d4d30cb
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