- Timestamp:
- Mar 24, 2011 3:20:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/test/vid_dev_test.c
r3431 r3484 24 24 #include <pjmedia_videodev.h> 25 25 26 #if defined(PJ_DARWINOS) && PJ_DARWINOS!=027 # include "TargetConditionals.h"28 # if !TARGET_OS_IPHONE29 # define VID_DEV_TEST_MAC_OS 130 # endif31 #endif32 33 #if VID_DEV_TEST_MAC_OS34 # include <Foundation/NSAutoreleasePool.h>35 # include <AppKit/NSApplication.h>36 #endif37 38 26 #define THIS_FILE "vid_dev_test.c" 39 27 … … 144 132 145 133 /* Sleep while the webcam is being displayed... */ 146 for (i = 0; i < 15 && (!is_quitting); i++) { 147 #if VID_DEV_TEST_MAC_OS 148 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); 149 #endif 134 for (i = 0; i < 25 && (!is_quitting); i++) { 150 135 pj_thread_sleep(100); 151 136 } … … 208 193 209 194 for (i = 0; i < 35 && (!is_quitting); i++) { 210 #if VID_DEV_TEST_MAC_OS211 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);212 #endif213 195 pj_thread_sleep(100); 214 196 } … … 229 211 int rc = 0; 230 212 pj_status_t status; 231 232 #if VID_DEV_TEST_MAC_OS233 NSAutoreleasePool *apool = [[NSAutoreleasePool alloc] init];234 235 [NSApplication sharedApplication];236 #endif237 213 238 214 PJ_LOG(3, (THIS_FILE, "Video device tests..")); … … 255 231 pjmedia_vid_subsys_shutdown(); 256 232 pj_pool_release(pool); 257 258 #if VID_DEV_TEST_MAC_OS259 [apool release];260 #endif261 233 262 234 return rc;
Note: See TracChangeset
for help on using the changeset viewer.