Changeset 3487
- Timestamp:
- Mar 25, 2011 8:13:43 AM (14 years ago)
- Location:
- pjproject/branches/projects/2.0-dev
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/converter.c
r3392 r3487 21 21 #include <pj/errno.h> 22 22 23 #define THIS_FILE "converter.c" 23 24 24 25 struct pjmedia_converter_mgr … … 29 30 static pjmedia_converter_mgr *converter_manager_instance; 30 31 32 #if PJMEDIA_HAS_LIBSWSCALE && PJMEDIA_HAS_LIBAVUTIL 33 PJ_DECL(pj_status_t) 34 pjmedia_libswscale_converter_init(pjmedia_converter_mgr *mgr); 35 #endif 36 37 31 38 PJ_DEF(pj_status_t) pjmedia_converter_mgr_create(pj_pool_t *pool, 32 39 pjmedia_converter_mgr **p_mgr) 33 40 { 34 41 pjmedia_converter_mgr *mgr; 42 pj_status_t status; 35 43 36 44 mgr = PJ_POOL_ALLOC_T(pool, pjmedia_converter_mgr); … … 39 47 if (!converter_manager_instance) 40 48 converter_manager_instance = mgr; 49 50 #if PJMEDIA_HAS_LIBSWSCALE && PJMEDIA_HAS_LIBAVUTIL 51 status = pjmedia_libswscale_converter_init(mgr); 52 if (status != PJ_SUCCESS) { 53 PJ_PERROR(4,(THIS_FILE, status, 54 "Error initializing libswscale converter")); 55 } 56 #endif 41 57 42 58 if (p_mgr) -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/converter_libswscale.c
r3392 r3487 177 177 178 178 PJ_DEF(pj_status_t) 179 pjmedia_libswscale_converter_init(pjmedia_converter_mgr *mgr, 180 pj_pool_t *pool) 179 pjmedia_libswscale_converter_init(pjmedia_converter_mgr *mgr) 181 180 { 182 181 libswscale_factory.op = &libswscale_factory_op; 183 PJ_UNUSED_ARG(pool);184 182 return pjmedia_converter_mgr_register_factory(mgr, &libswscale_factory); 185 183 } -
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/aviplay.c
r3483 r3487 58 58 /* For logging purpose. */ 59 59 #define THIS_FILE "aviplay.c" 60 61 pj_status_t62 pjmedia_libswscale_converter_init(pjmedia_converter_mgr *mgr,63 pj_pool_t *pool);64 60 65 61 static const char *desc = … … 330 326 pjmedia_conversion_param conv_param; 331 327 332 status = pjmedia_libswscale_converter_init(NULL, pool);333 334 328 pjmedia_format_copy(&conv_param.src, ¶m.vidparam.fmt); 335 329 pjmedia_format_copy(&conv_param.dst, ¶m.vidparam.fmt); -
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c
r3476 r3487 60 60 61 61 62 PJ_DECL(pj_status_t)63 pjmedia_libswscale_converter_init(pjmedia_converter_mgr *mgr,64 pj_pool_t *pool);65 66 62 /** 67 63 * Init media subsystems. … … 315 311 if (status != PJ_SUCCESS) { 316 312 pjsua_perror(THIS_FILE, "Error initializing ffmpeg library", 317 status);318 return status;319 }320 #endif321 322 #if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_LIBSWSCALE && PJMEDIA_HAS_LIBAVUTIL323 status = pjmedia_libswscale_converter_init(NULL, pjsua_var.pool);324 if (status != PJ_SUCCESS) {325 pjsua_perror(THIS_FILE, "Error initializing libswscale converter",326 313 status); 327 314 return status;
Note: See TracChangeset
for help on using the changeset viewer.