Ignore:
Timestamp:
Dec 14, 2010 1:03:10 PM (14 years ago)
Author:
ming
Message:

Fixed #1183

  • QT capture device for Mac
  • iOS device for iOS (capture device only works for iOS 4.0 or above)
  • Add NSAutoReleasePool for sdl_dev (Mac)
  • Add NSAutoReleasePool for vid_dev_test (Mac)
  • build system for compilation of Obj-C files (.m)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/test/test.c

    r3392 r3395  
    4848    int rc = 0; 
    4949    pj_caching_pool caching_pool; 
     50    pj_pool_t *pool; 
    5051 
    5152    pj_init(); 
    5253    pj_caching_pool_init(&caching_pool, &pj_pool_factory_default_policy, 0); 
    53  
     54    pool = pj_pool_create(&caching_pool.factory, "test", 1000, 512, NULL); 
     55     
    5456    pj_log_set_decor(PJ_LOG_HAS_NEWLINE); 
    5557    pj_log_set_level(3); 
    5658 
    5759    mem = &caching_pool.factory; 
     60 
     61    pjmedia_video_format_mgr_create(pool, 64, 0, NULL); 
     62    pjmedia_converter_mgr_create(pool, NULL); 
     63    pjmedia_vid_codec_mgr_create(pool, NULL); 
    5864 
    5965#if HAS_VID_DEV_TEST 
     
    9096    } 
    9197 
     98    pjmedia_video_format_mgr_destroy(pjmedia_video_format_mgr_instance()); 
     99    pjmedia_converter_mgr_destroy(pjmedia_converter_mgr_instance()); 
     100    pjmedia_vid_codec_mgr_destroy(pjmedia_vid_codec_mgr_instance()); 
     101     
     102    pj_pool_release(pool); 
    92103    pj_caching_pool_destroy(&caching_pool); 
    93104 
Note: See TracChangeset for help on using the changeset viewer.