diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-11-07 12:29:34 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-11-07 15:24:28 +0100 |
commit | 98e849a09230399496ac8a3bd548cdf573f1c6be (patch) | |
tree | e1b1cea6bd62e499a9304cf46b5104d56d5634b8 /sys | |
parent | a2b90eeb8c673af5b53380bdcb328b075a253ca7 (diff) | |
download | gstreamer-plugins-bad-98e849a09230399496ac8a3bd548cdf573f1c6be.tar.gz |
avfvideosrc: fix build in iOS with isEqualTo doesn't exists
Diffstat (limited to 'sys')
-rw-r--r-- | sys/applemedia/avfvideosrc.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/applemedia/avfvideosrc.m b/sys/applemedia/avfvideosrc.m index e392ebfde..c163ca521 100644 --- a/sys/applemedia/avfvideosrc.m +++ b/sys/applemedia/avfvideosrc.m @@ -237,12 +237,13 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer AVCaptureScreenInput *screenInput = [[AVCaptureScreenInput alloc] initWithDisplayID:displayId]; + @try { [screenInput setValue:[NSNumber numberWithBool:captureScreenCursor] forKey:@"capturesCursor"]; } @catch (NSException *exception) { - if (![[exception name] isEqualTo:NSUndefinedKeyException]) { + if (![[exception name] isEqualToString:NSUndefinedKeyException]) { GST_WARNING ("An unexpected error occured: %s", [[exception reason] UTF8String]); } @@ -422,7 +423,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer /* Only available on OSX >= 10.8 and iOS >= 7.0 */ [device setValue:max_frame_duration forKey:@"activeVideoMaxFrameDuration"]; } @catch (NSException *exception) { - if (![[exception name] isEqualTo:NSUndefinedKeyException]) { + if (![[exception name] isEqualToString:NSUndefinedKeyException]) { GST_WARNING ("An unexcepted error occured: %s", [exception.reason UTF8String]); } @@ -548,7 +549,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer } @catch (NSException *exception) { - if (![[exception name] isEqualTo:NSUndefinedKeyException]) { + if (![[exception name] isEqualToString:NSUndefinedKeyException]) { GST_WARNING ("An unexcepted error occured: %s", [exception.reason UTF8String]); return result; } @@ -596,7 +597,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer } @catch (NSException *exception) { - if (![[exception name] isEqualTo:NSUndefinedKeyException]) { + if (![[exception name] isEqualToString:NSUndefinedKeyException]) { GST_WARNING ("An unexcepted error occured: %s", [exception.reason UTF8String]); *successPtr = NO; return; |