From c8a6536656c70d6fa62f7a3cb4484f45688679c8 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sat, 17 Jul 2010 03:01:36 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@54824 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/CDDeviceInterface/src/PlugCD.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'macosx/plugins/CDDeviceInterface') diff --git a/macosx/plugins/CDDeviceInterface/src/PlugCD.c b/macosx/plugins/CDDeviceInterface/src/PlugCD.c index b9d770dd..1e3a613e 100644 --- a/macosx/plugins/CDDeviceInterface/src/PlugCD.c +++ b/macosx/plugins/CDDeviceInterface/src/PlugCD.c @@ -94,7 +94,10 @@ kern_return_t FindEjectableCDMedia( io_iterator_t *mediaIterator, mach_port_t *m return kernResult; } // CD media are instances of class kIOCDMediaClass. - classesToMatch = IOServiceMatching( kIOCDMediaClass ); + classesToMatch = IOServiceMatching( kIOCDMediaClass ); + if ( classesToMatch == NULL ) + classesToMatch = IOServiceMatching( kIODVDMediaClass ); + if ( classesToMatch == NULL ) printf( "IOServiceMatching returned a NULL dictionary.\n" ); else -- cgit v1.2.3