diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-12-20 21:38:24 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-12-20 21:38:24 +0000 |
commit | d18f0ffcf6cac260e15cc927e188225b304a00ae (patch) | |
tree | 8712e1af6c92a61ac99ef359664e0a7cf64bde3f /src/xine-engine/load_plugins.c | |
parent | b32478f237d5e590e4714ee52ab5ce96206bae05 (diff) | |
download | xine-lib-d18f0ffcf6cac260e15cc927e188225b304a00ae.tar.gz xine-lib-d18f0ffcf6cac260e15cc927e188225b304a00ae.tar.bz2 |
reverse the order plugins with equal priorities are handled so that plugins
appearing earlier in the plugin path actually override later plugins;
also check the priority of video_out plugins on loading for symmetry to the
audio_out loading
CVS patchset: 7289
CVS date: 2004/12/20 21:38:24
Diffstat (limited to 'src/xine-engine/load_plugins.c')
-rw-r--r-- | src/xine-engine/load_plugins.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index ac76ae0d7..2e9c391eb 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -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: load_plugins.c,v 1.191 2004/12/12 22:01:31 mroi Exp $ + * $Id: load_plugins.c,v 1.192 2004/12/20 21:38:25 mroi Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -161,7 +161,7 @@ static void map_decoders (xine_t *this) { /* find the right place based on the priority */ for (pos = 0; pos < PLUGINS_PER_TYPE; pos++) if (!catalog->audio_decoder_map[streamtype][pos] || - get_decoder_priority(this, catalog->audio_decoder_map[streamtype][pos]) <= priority) + priority > get_decoder_priority(this, catalog->audio_decoder_map[streamtype][pos])) break; /* shift the decoder list for this type by one to make room for new decoder */ @@ -200,7 +200,7 @@ static void map_decoders (xine_t *this) { /* find the right place based on the priority */ for (pos = 0; pos < PLUGINS_PER_TYPE; pos++) if (!catalog->video_decoder_map[streamtype][pos] || - get_decoder_priority(this, catalog->video_decoder_map[streamtype][pos]) <= priority) + priority > get_decoder_priority(this, catalog->video_decoder_map[streamtype][pos])) break; /* shift the decoder list for this type by one to make room for new decoder */ @@ -238,7 +238,7 @@ static void map_decoders (xine_t *this) { /* find the right place based on the priority */ for (pos = 0; pos < PLUGINS_PER_TYPE; pos++) if (!catalog->spu_decoder_map[streamtype][pos] || - get_decoder_priority(this, catalog->spu_decoder_map[streamtype][pos]) <= priority) + priority > get_decoder_priority(this, catalog->spu_decoder_map[streamtype][pos])) break; /* shift the decoder list for this type by one to make room for new decoder */ @@ -1393,7 +1393,7 @@ xine_video_port_t *xine_open_video_driver (xine_t *this, break; } - } else { + } else if( vo_info->priority >= 0 ) { driver = _load_video_driver (this, node, visual); |