Changeset 3838 for pjproject


Ignore:
Timestamp:
Oct 24, 2011 3:59:58 AM (13 years ago)
Author:
nanang
Message:

Misc (re #1393): Put log warning in ffmpeg codecs when a codec is enabled but cannot be found in ffmpeg library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3836 r3838  
    787787            pj_assert(status == PJ_SUCCESS); 
    788788        } 
     789 
     790        /* Print warning about missing encoder/decoder */ 
     791        if (!desc->enc) { 
     792            PJ_LOG(4, (THIS_FILE, "Cannot find %.*s encoder in ffmpeg library", 
     793                       desc->info.encoding_name.slen, 
     794                       desc->info.encoding_name.ptr)); 
     795        } 
     796        if (!desc->dec) { 
     797            PJ_LOG(4, (THIS_FILE, "Cannot find %.*s decoder in ffmpeg library", 
     798                       desc->info.encoding_name.slen, 
     799                       desc->info.encoding_name.ptr)); 
     800        } 
    789801    } 
    790802 
Note: See TracChangeset for help on using the changeset viewer.