mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
win-dshow: Ensure thread is joinable before joining
This may have been the issue behind the reported firefox crashes, but strangely, the thread should always be joinable here because it's explicitly always created in the constructor and joined in the destructor.
This commit is contained in:
1 parent
1960f6c11c
commit
0dbae4ebef
1 file changed
+2
-1
@@ -112,7 +112,8 @@ VCamFilter::VCamFilter()
|
||||
VCamFilter::~VCamFilter()
|
||||
{
|
||||
SetEvent(thread_stop);
|
||||
th.join();
|
||||
if (th.joinable())
|
||||
th.join();
|
||||
video_queue_close(vq);
|
||||
|
||||
if (placeholder.scaled_data)
|
||||
|
||||
Reference in new issue
Block a user