Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjmedia/src/pjmedia/converter.c

    r4875 r5513  
    3030static pjmedia_converter_mgr *converter_manager_instance; 
    3131 
    32 #if PJMEDIA_HAS_LIBSWSCALE && PJMEDIA_HAS_LIBAVUTIL 
     32#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) && \ 
     33    defined(PJMEDIA_HAS_LIBSWSCALE) && (PJMEDIA_HAS_LIBSWSCALE != 0) 
    3334PJ_DECL(pj_status_t) 
    3435pjmedia_libswscale_converter_init(pjmedia_converter_mgr *mgr); 
    3536#endif 
    3637 
    37 #if defined(PJMEDIA_HAS_LIBYUV) && PJMEDIA_HAS_LIBYUV != 0 
     38#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) && \ 
     39    defined(PJMEDIA_HAS_LIBYUV) && (PJMEDIA_HAS_LIBYUV != 0) 
    3840PJ_DECL(pj_status_t) 
    3941pjmedia_libyuv_converter_init(pjmedia_converter_mgr *mgr); 
     
    5254        converter_manager_instance = mgr; 
    5355 
    54 #if defined(PJMEDIA_HAS_LIBYUV) && PJMEDIA_HAS_LIBYUV != 0 
     56#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) && \ 
     57    defined(PJMEDIA_HAS_LIBSWSCALE) && (PJMEDIA_HAS_LIBSWSCALE != 0) 
     58    status = pjmedia_libswscale_converter_init(mgr); 
     59    if (status != PJ_SUCCESS) { 
     60        PJ_PERROR(4,(THIS_FILE, status, 
     61                     "Error initializing libswscale converter")); 
     62    } 
     63#endif 
     64 
     65#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) && \ 
     66    defined(PJMEDIA_HAS_LIBYUV) && (PJMEDIA_HAS_LIBYUV != 0) 
    5567    status = pjmedia_libyuv_converter_init(mgr); 
    5668    if (status != PJ_SUCCESS) { 
    5769        PJ_PERROR(4,(THIS_FILE, status, 
    5870                     "Error initializing libyuv converter")); 
    59     } 
    60 #endif 
    61  
    62 #if PJMEDIA_HAS_LIBSWSCALE && PJMEDIA_HAS_LIBAVUTIL 
    63     status = pjmedia_libswscale_converter_init(mgr); 
    64     if (status != PJ_SUCCESS) { 
    65         PJ_PERROR(4,(THIS_FILE, status, 
    66                      "Error initializing libswscale converter")); 
    6771    } 
    6872#endif 
Note: See TracChangeset for help on using the changeset viewer.