From: ritsuka Date: Wed, 28 Nov 2007 19:48:43 +0000 (+0000) Subject: MacGUI: Fix a warning on 10.5 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;ds=sidebyside;h=e736a43c897969f97c24cb9d6f3f39daebc91a6c;p=handbrake-jp%2Fhandbrake-jp-git.git MacGUI: Fix a warning on 10.5 git-svn-id: svn://localhost/HandBrake/trunk@1083 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/macosx/HBDVDDetector.m b/macosx/HBDVDDetector.m index 7360c0a9..966e812c 100644 --- a/macosx/HBDVDDetector.m +++ b/macosx/HBDVDDetector.m @@ -101,14 +101,21 @@ } FSVolumeRefNum volRefNum = catalogInfo.volume; - // Mow let's get the device name + // Now let's get the device name GetVolParmsInfoBuffer volumeParms; + // PBHGetVolParmsSync is deprecated, but still needed for 10.4 compatibility + #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 HParamBlockRec pb; pb.ioParam.ioNamePtr = NULL; pb.ioParam.ioVRefNum = volRefNum; pb.ioParam.ioBuffer = (Ptr) &volumeParms; pb.ioParam.ioReqCount = sizeof( volumeParms ); err = PBHGetVolParmsSync( &pb ); + #else + // Let's use FSGetVolumeParms + err = FSGetVolumeParms ( volRefNum, &volumeParms, sizeof( volumeParms ) ); + #endif + if( err != noErr ) { return nil;