mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
d3dvideosink: Open Direct3D devices in a threadsafe way
Otherwise we'll get crashes when using the device from multiple threads, e.g. when using multiple sinks at once. https://bugzilla.gnome.org/show_bug.cgi?id=707523
This commit is contained in:
parent
a7e243b32e
commit
4ec87d9690
1 changed files with 3 additions and 0 deletions
|
@ -2374,6 +2374,9 @@ d3d_class_display_device_create (GstD3DVideoSinkClass * klass, UINT adapter)
|
|||
*/
|
||||
create_mask = 0 | D3DCREATE_FPU_PRESERVE;
|
||||
|
||||
/* Make sure that device access is threadsafe */
|
||||
create_mask |= D3DCREATE_MULTITHREADED;
|
||||
|
||||
/* Determine vertex processing capabilities. Some cards have issues
|
||||
* using software vertex processing. Courtesy:
|
||||
* http://www.chadvernon.com/blog/resources/directx9/improved-direct3d-initialization/
|
||||
|
|
Loading…
Reference in a new issue