From df540d7da58b64720d14076e84b756551eeee123 Mon Sep 17 00:00:00 2001 From: rocky Date: Wed, 18 Aug 2004 11:31:58 +0000 Subject: [PATCH] Make sure pp_scsiTaskDeviceInterface is initialized. The code should probably be reorganized better for this. For now this probably works. --- lib/_cdio_osx.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/_cdio_osx.c b/lib/_cdio_osx.c index 10b7237d..3923f818 100644 --- a/lib/_cdio_osx.c +++ b/lib/_cdio_osx.c @@ -1,5 +1,5 @@ /* - $Id: _cdio_osx.c,v 1.54 2004/08/16 01:47:49 rocky Exp $ + $Id: _cdio_osx.c,v 1.55 2004/08/18 11:31:58 rocky Exp $ Copyright (C) 2003, 2004 Rocky Bernstein from vcdimager code: @@ -34,7 +34,7 @@ #include "config.h" #endif -static const char _rcsid[] = "$Id: _cdio_osx.c,v 1.54 2004/08/16 01:47:49 rocky Exp $"; +static const char _rcsid[] = "$Id: _cdio_osx.c,v 1.55 2004/08/18 11:31:58 rocky Exp $"; #include #include @@ -148,6 +148,10 @@ run_scsi_cmd_osx( const void *p_user_data, if (NULL == p_user_data) return 2; + /* Make sure pp_scsiTaskDeviceInterface is initialized. FIXME: The code + should probably be reorganized better for this. */ + if (!p_env->gen.toc_init) read_toc_osx (p_user_data) ; + sc = p_env->pp_scsiTaskDeviceInterface; cmd = (*sc)->CreateSCSITask(sc);