summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-05-20 14:50:47 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-05-20 14:50:47 +0000
commit40dbb8c447e1fb2b925778f403b84f96f125baf6 (patch)
tree26337410a9d2d49a10f2f1e2229e5c5451f18536
parentcf2ed9c0e18776f27c68e94aaf45af6c1b02fb2d (diff)
downloadxine-lib-40dbb8c447e1fb2b925778f403b84f96f125baf6.tar.gz
xine-lib-40dbb8c447e1fb2b925778f403b84f96f125baf6.tar.bz2
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
-rw-r--r--src/xine-engine/load_plugins.c13
1 files 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;
}