diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-12-23 17:15:00 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-12-23 17:15:00 +0000 |
commit | c246aa729ba44c0ff8097cb953d551472830e37e (patch) | |
tree | ecd2f591da6cda4351bc305afc8f775f5626a719 | |
parent | bd8d7c5708c11c75a3cb910e3176353ba3e372a3 (diff) | |
download | xine-lib-c246aa729ba44c0ff8097cb953d551472830e37e.tar.gz xine-lib-c246aa729ba44c0ff8097cb953d551472830e37e.tar.bz2 |
fix segfaults
CVS patchset: 3654
CVS date: 2002/12/23 17:15:00
-rw-r--r-- | src/xine-engine/load_plugins.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 4a7e346b2..c6e8bcf98 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.124 2002/12/23 11:42:12 miguelfreitas Exp $ + * $Id: load_plugins.c,v 1.125 2002/12/23 17:15:00 guenter Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -1182,7 +1182,7 @@ xine_video_port_t *xine_open_video_driver (xine_t *this, driver = NULL; - if( !strcasecmp(id, "auto") ) + if (id && !strcasecmp(id, "auto")) id = NULL; pthread_mutex_lock (&catalog->lock); @@ -1322,7 +1322,7 @@ xine_audio_port_t *xine_open_audio_driver (xine_t *this, const char *id, ao_info_t *ao_info; plugin_catalog_t *catalog = this->plugin_catalog; - if( !strcasecmp(id, "auto") ) + if (id && !strcasecmp(id, "auto") ) id = NULL; pthread_mutex_lock (&catalog->lock); |