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/pjmedia/src/test/main.c

    r3484 r3643  
    1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1919 */ 
     20#include <pj/os.h> 
     21 
    2022#include "test.h" 
    21 #include <pjmedia_videodev.h> 
    2223 
    2324  
     
    3132#endif 
    3233 
    33  
    34 int main(int argc, char *argv[]) 
     34static int main_func(int argc, char *argv[]) 
    3535{ 
    3636    int rc; 
     
    4848} 
    4949 
    50  
     50int main(int argc, char *argv[]) 
     51{ 
     52    return pj_run_app(&main_func, argc, argv, 0); 
     53} 
Note: See TracChangeset for help on using the changeset viewer.