[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] mediastreamer plugins were not loaded

From: Luc Deschenaux
Subject: [Linphone-developers] mediastreamer plugins were not loaded
Date: Fri, 10 Oct 2008 07:27:08 +0200

Hi !

plugins could not be loaded: de->d_type was equal to DT_UNKNOWN for libraries 
and links

(maybe because the directory was on xfs filesystem ?)

without the extra test for checking if the filename is ending in ".so",
all the symbolic links were loaded too ..

-> was the plugin really loaded many times ? anyway..
with this patch, is now loaded from the xfs directory i did 
install it..

Index: mediastreamer2/src/mscommon.c
--- mediastreamer2/src/mscommon.c       (révision 72)
+++ mediastreamer2/src/mscommon.c       (copie de travail)
@@ -346,7 +346,7 @@
                return -1;
        while( (de=readdir(ds))!=NULL){
-               if (de->d_type==DT_REG && strstr(de->d_name,PLUGINS_EXT)!=NULL){
+               if ((de->d_type==DT_REG || de->d_type==DT_UNKNOWN) && 
                        void *handle;
                        ms_message("Loading plugin %s...",fullpath);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]