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) {
if(thiz != nil) {
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];
[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