- Timestamp:
- Mar 24, 2011 3:20:05 PM (14 years ago)
- Location:
- pjproject/branches/projects/2.0-dev/pjmedia
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/build/Makefile
r3445 r3484 29 29 $(CC_INC)../../pjlib/include \ 30 30 $(CC_INC)../../pjlib-util/include \ 31 $(CC_INC)../../pjmedia/include \ 31 32 $(CC_INC)../../pjnath/include \ 32 33 $(CC_INC)../.. \ … … 120 121 export PJMEDIA_TEST_SRCDIR = ../src/test 121 122 export PJMEDIA_TEST_OBJS += codec_vectors.o jbuf_test.o main.o mips_test.o \ 122 vid_codec_test.o rtp_test.o test.o123 vid_codec_test.o vid_dev_test.o rtp_test.o test.o 123 124 export PJMEDIA_TEST_OBJS += sdp_neg_test.o 124 125 export PJMEDIA_TEST_CFLAGS += $(_CFLAGS) -
pjproject/branches/projects/2.0-dev/pjmedia/build/os-auto.mak.in
r3395 r3484 167 167 # Mac OS specific, use obj-c 168 168 export PJMEDIA_VIDEODEV_OBJS += sdl_dev_m.o 169 export PJMEDIA_TEST_OBJS += vid_dev_test_m.o170 169 else 171 170 # Other platforms, compile .c 172 171 export PJMEDIA_VIDEODEV_OBJS += sdl_dev.o 173 export PJMEDIA_TEST_OBJS += vid_dev_test.o174 172 endif -
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia_videodev.h
r3392 r3484 28 28 #include <pjmedia-videodev/videodev_imp.h> 29 29 30 #if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 31 # if PJMEDIA_VIDEO_DEV_HAS_SDL 32 # include <SDL.h> 33 #endif 34 #endif 35 30 36 #endif /* __PJMEDIA_VIDEODEV_H__ */ -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/qt_dev.m
r3467 r3484 549 549 } 550 550 551 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); 552 551 553 return PJ_SUCCESS; 552 554 } -
pjproject/branches/projects/2.0-dev/pjmedia/src/test/main.c
r2408 r3484 19 19 */ 20 20 #include "test.h" 21 #include <pjmedia_videodev.h> 21 22 22 23 -
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.