Changeset 88:b99d3cb5b585 in mediastreamer2


Ignore:
Timestamp:
Oct 15, 2008 6:23:21 PM (5 years ago)
Author:
aymeric <aymeric@…>
Branch:
default
Message:

The previous modification will not work on OS like macosx because version information is located before the extension. Thus, the previous code can load a plugins several times (file and links).

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@91 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/mediastreamer2/src/mscommon.c

    r80 r88  
    347347        } 
    348348        while( (de=readdir(ds))!=NULL){ 
    349                 if ((de->d_type==DT_REG || de->d_type==DT_LNK  || de->d_type==DT_UNKNOWN)  
    350                         && strstr(de->d_name,PLUGINS_EXT)==de->d_name+strlen(de->d_name)-strlen(PLUGINS_EXT) ) { 
     349    if ((de->d_type==DT_REG && strstr(de->d_name,PLUGINS_EXT)!=NULL) 
     350                        || (de->d_type==DT_UNKNOWN && strstr(de->d_name,PLUGINS_EXT)==de->d_name+strlen(de->d_name)-strlen(PLUGINS_EXT)) { 
    351351                        void *handle; 
    352352                        fullpath=ms_strdup_printf("%s/%s",dir,de->d_name); 
Note: See TracChangeset for help on using the changeset viewer.