Commit 04db0db5 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

ioscapture.m: remove thread condition when stopping video preview to avoid...

ioscapture.m: remove thread condition when stopping video preview to avoid hanging on iPad air when call starts/stops
parent 8eee0095
...@@ -571,9 +571,9 @@ static void ioscapture_uninit(MSFilter *f) { ...@@ -571,9 +571,9 @@ static void ioscapture_uninit(MSFilter *f) {
if(thiz != nil) { if(thiz != nil) {
NSAutoreleasePool* myPool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool* myPool = [[NSAutoreleasePool alloc] init];
[thiz performSelectorInBackground:@selector(stop) withObject:nil]; [thiz stop];
[thiz performSelectorOnMainThread:@selector(setParentView:) withObject:nil waitUntilDone:NO]; [thiz setParentView:nil];
[thiz release]; [thiz release];
[myPool drain]; [myPool drain];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment