2019a2020,2021
>   gst_d3dvideosink_release_d3d_device (sink);
> 
2277a2280,2283
>   GST_D3DVIDEOSINK_D3D_DEVICE_LOCK (sink);
>   gst_d3dvideosink_release_d3d_device (sink);
>   GST_D3DVIDEOSINK_D3D_DEVICE_UNLOCK (sink);
> 
2284,2287d2289
< 
<   GST_D3DVIDEOSINK_D3D_DEVICE_LOCK (sink);
<   gst_d3dvideosink_release_d3d_device (sink);
<   GST_D3DVIDEOSINK_D3D_DEVICE_UNLOCK (sink);
