diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-09-09 13:57:12 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-09-09 13:57:12 +0000 |
commit | b3cb8d528ee17a4ce2ac4c2257a7d82a1729c343 (patch) | |
tree | 751d43d6095335465c267be6210e566edf0a9bfc /src/xine-engine/plugin_catalog.h | |
parent | cec70fdee25601338fc945825ec2e080de9aa280 (diff) | |
download | xine-lib-b3cb8d528ee17a4ce2ac4c2257a7d82a1729c343.tar.gz xine-lib-b3cb8d528ee17a4ce2ac4c2257a7d82a1729c343.tar.bz2 |
allow multiple decoders per stream type, sort them by priority and
fallback, if one refuses to work
CVS patchset: 2635
CVS date: 2002/09/09 13:57:12
Diffstat (limited to 'src/xine-engine/plugin_catalog.h')
-rw-r--r-- | src/xine-engine/plugin_catalog.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xine-engine/plugin_catalog.h b/src/xine-engine/plugin_catalog.h index d65ea8e25..9e166d813 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.4 2002/09/06 18:13:12 mroi Exp $ + * $Id: plugin_catalog.h,v 1.5 2002/09/09 13:57:13 mroi Exp $ * * xine-internal header: Definitions for plugin lists * @@ -32,6 +32,9 @@ #define DECODER_MAX 256 #define PLUGIN_MAX 256 +/* the engine takes this many plugins for one stream type */ +#define PLUGINS_PER_TYPE 10 + typedef struct { char *filename; plugin_info_t *info; @@ -47,10 +50,10 @@ struct plugin_catalog_s { xine_list_t *aout; xine_list_t *vout; - plugin_node_t *audio_decoder_map[DECODER_MAX]; - plugin_node_t *video_decoder_map[DECODER_MAX]; - plugin_node_t *spu_decoder_map[DECODER_MAX]; - + plugin_node_t *audio_decoder_map[DECODER_MAX][PLUGINS_PER_TYPE]; + plugin_node_t *video_decoder_map[DECODER_MAX][PLUGINS_PER_TYPE]; + plugin_node_t *spu_decoder_map[DECODER_MAX][PLUGINS_PER_TYPE]; + const char *ids[PLUGIN_MAX]; }; |