Ignore:
Timestamp:
Jul 14, 2011 8:46:19 AM (13 years ago)
Author:
ming
Message:

Re #1278: NSApplication and NSAutoreleasePool management for Mac OS X

Application now needs to call pj_run_app() from its main() function and pass a pointer to the application's main function. For some examples, please refer to aviplay, pjmedia_test, and pjsua.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/aviplay.c

    r3631 r3643  
    2121#include <pjmedia/converter.h> 
    2222#include <pjmedia-codec.h> 
    23 #include <pjmedia_videodev.h> 
    2423#include <pjlib-util.h> 
    2524#include <pjlib.h> 
     
    448447 
    449448 
    450 /* 
    451  * main() 
    452  */ 
    453 int main(int argc, char *argv[]) 
     449static int main_func(int argc, char *argv[]) 
    454450{ 
    455451    pj_caching_pool cp; 
     
    529525    return 0; 
    530526} 
     527 
     528int main(int argc, char *argv[]) 
     529{ 
     530    return pj_run_app(&main_func, argc, argv, 0); 
     531} 
Note: See TracChangeset for help on using the changeset viewer.