From 40dbb8c447e1fb2b925778f403b84f96f125baf6 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Tue, 20 May 2003 14:50:47 +0000 Subject: a decoder priority of 0 enables the decoder's default priority everyone is advised to use priority 0 from now on CVS patchset: 4886 CVS date: 2003/05/20 14:50:47 --- src/xine-engine/load_plugins.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index c3c8e1e84..d2e062057 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.150 2003/05/13 18:31:16 f1rmb Exp $ + * $Id: load_plugins.c,v 1.151 2003/05/20 14:50:47 mroi Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -95,15 +95,20 @@ static int _get_decoder_priority (xine_t *this, int default_priority, char *id) { char str[80]; + int result; sprintf (str, "decoder.%s_priority", id); - return this->config->register_num (this->config, + result = this->config->register_num (this->config, str, - default_priority, + 0, "decoder's priority compared to others", - NULL, 20, + "The priority provides a ranking in case some media " + "can be handled by more than one decoder.\n" + "A priority of 0 enables the decoders default priority.", 20, NULL, NULL /*FIXME: implement callback*/); + + return result ? result : default_priority; } -- cgit v1.2.3