diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-27 01:52:15 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-27 01:52:15 +0000 |
commit | b7dd962b658dd71ac94dda89110140bfd3dd63d2 (patch) | |
tree | 104f69f94383c1014b446f8a8f1ca6429d9b12b5 /src/xine-engine/load_plugins.c | |
parent | 01fe9e47e5c03c959dd0428d439db3cc74e5a741 (diff) | |
download | xine-lib-b7dd962b658dd71ac94dda89110140bfd3dd63d2.tar.gz xine-lib-b7dd962b658dd71ac94dda89110140bfd3dd63d2.tar.bz2 |
return of ogg and vorbis, began implementing verbosity parameter
CVS patchset: 3034
CVS date: 2002/10/27 01:52:15
Diffstat (limited to 'src/xine-engine/load_plugins.c')
-rw-r--r-- | src/xine-engine/load_plugins.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 4b0e423b4..71d7a8750 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.106 2002/10/26 16:16:04 mroi Exp $ + * $Id: load_plugins.c,v 1.107 2002/10/27 01:52:15 guenter Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -129,8 +129,9 @@ static void _insert_plugin (xine_t *this, int i; if (info->API != api_version) { - printf ("load_plugins: ignoring plugin %s, wrong iface version %d (should be %d)\n", - info->id, info->API, api_version); + if (this->verbosity) + printf ("load_plugins: ignoring plugin %s, wrong iface version %d (should be %d)\n", + info->id, info->API, api_version); return; } @@ -246,14 +247,13 @@ static void collect_plugins(xine_t *this, char *path){ if(!(lib = dlopen (str, RTLD_LAZY | RTLD_GLOBAL))) { -/*#ifdef LOG*/ - { + + if (this->verbosity) { char *dl_error_msg = dlerror(); /* too noisy -- but good to catch unresolved references */ printf ("load_plugins: cannot open plugin lib %s:\n%s\n", str, dl_error_msg); } -/*#endif*/ } else { @@ -1109,7 +1109,9 @@ video_decoder_t *get_video_decoder (xine_stream_t *stream, uint8_t stream_type) if (!node->plugin_class) { /* remove non working plugin from catalog */ - printf("load_plugins: plugin %s failed to init its class.\n", node->info->id); + if (stream->xine->verbosity) + printf("load_plugins: plugin %s failed to init its class.\n", + node->info->id); for (j = i + 1; j < PLUGINS_PER_TYPE; j++) catalog->video_decoder_map[stream_type][j - 1] = catalog->video_decoder_map[stream_type][j]; |