diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-06-23 19:45:52 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-06-23 19:45:52 +0000 |
commit | 942ce04093e5e6855a559d69bbe8e8125dbfeb18 (patch) | |
tree | 64bc34cfe12404bb0a1b31a8a26ad3f65f66ae90 /src/xine-engine/plugin_catalog.h | |
parent | 4c255e49e88d9e4e7510fc9c3e1d950e2ca96839 (diff) | |
download | xine-lib-942ce04093e5e6855a559d69bbe8e8125dbfeb18.tar.gz xine-lib-942ce04093e5e6855a559d69bbe8e8125dbfeb18.tar.bz2 |
* fix the realloc-bug introduced by me and found by Frantisek
* since plugin catalog assumes a limit on plugin count, we should actually
enforce this limit on plugin loading
* reduce DECODER_MAX from 256 to 128, because PLUGIN_MAX is already 256
and having only decoder plugins is unlikely
CVS patchset: 6738
CVS date: 2004/06/23 19:45:52
Diffstat (limited to 'src/xine-engine/plugin_catalog.h')
-rw-r--r-- | src/xine-engine/plugin_catalog.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/xine-engine/plugin_catalog.h b/src/xine-engine/plugin_catalog.h index 4077bcda3..5cc716a95 100644 --- a/src/xine-engine/plugin_catalog.h +++ b/src/xine-engine/plugin_catalog.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: plugin_catalog.h,v 1.15 2004/06/19 19:48:42 mroi Exp $ + * $Id: plugin_catalog.h,v 1.16 2004/06/23 19:45:54 mroi Exp $ * * xine-internal header: Definitions for plugin lists * @@ -34,7 +34,7 @@ # include <xine/xineutils.h> #endif -#define DECODER_MAX 256 +#define DECODER_MAX 128 #define PLUGIN_MAX 256 /* the engine takes this many plugins for one stream type */ @@ -72,9 +72,7 @@ struct plugin_catalog_s { const char *ids[PLUGIN_MAX]; /* memory block for the decoder priority config entry descriptions */ - char *prio_desc_mem; - int prio_desc_next; - int prio_desc_size; + char *prio_desc[DECODER_MAX]; pthread_mutex_t lock; }; |