diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2010-01-14 08:11:29 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2010-01-14 08:11:29 +0000 |
commit | 9878ff0b4f33fc641a6660df43240ebeefb8abf8 (patch) | |
tree | 551e0e700f21a518857c0cabf88413583dc207ee /src/native/macosx | |
parent | 23faa28981bb78cc2aece0418284100c017acd6e (diff) | |
download | jitsi-9878ff0b4f33fc641a6660df43240ebeefb8abf8.zip jitsi-9878ff0b4f33fc641a6660df43240ebeefb8abf8.tar.gz jitsi-9878ff0b4f33fc641a6660df43240ebeefb8abf8.tar.bz2 |
Fixes a crash in the QTKit CaptureDevice on Mac OS X Leopard with 64-bit Java 1.6 because of the use of API documented to be available since 10.5 but... not really available.
Diffstat (limited to 'src/native/macosx')
-rw-r--r-- | src/native/macosx/quicktime/net_java_sip_communicator_impl_neomedia_quicktime_QTCaptureDecompressedVideoOutput.m | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/native/macosx/quicktime/net_java_sip_communicator_impl_neomedia_quicktime_QTCaptureDecompressedVideoOutput.m b/src/native/macosx/quicktime/net_java_sip_communicator_impl_neomedia_quicktime_QTCaptureDecompressedVideoOutput.m index 6f7f66e..758219a 100644 --- a/src/native/macosx/quicktime/net_java_sip_communicator_impl_neomedia_quicktime_QTCaptureDecompressedVideoOutput.m +++ b/src/native/macosx/quicktime/net_java_sip_communicator_impl_neomedia_quicktime_QTCaptureDecompressedVideoOutput.m @@ -75,9 +75,11 @@ Java_net_java_sip_communicator_impl_neomedia_quicktime_QTCaptureDecompressedVide captureDecompressedVideoOutput = (QTCaptureDecompressedVideoOutput *) ptr; autoreleasePool = [[NSAutoreleasePool alloc] init]; - [captureDecompressedVideoOutput - setAutomaticallyDropsLateVideoFrames: - ((JNI_TRUE == automaticallyDropsLateVideoFrames) ? YES : NO)]; + if ([captureDecompressedVideoOutput + respondsToSelector:@selector(setAutomaticallyDropsLateVideoFrames)]) + [captureDecompressedVideoOutput + setAutomaticallyDropsLateVideoFrames: + ((JNI_TRUE == automaticallyDropsLateVideoFrames) ? YES : NO)]; [autoreleasePool release]; } |