summaryrefslogtreecommitdiffstats
path: root/macosx/HBDVDDetector.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2007-11-28 19:48:43 +0000
committerritsuka <[email protected]>2007-11-28 19:48:43 +0000
commit048267df5fff981e702edc5e44d7ac6115221d7d (patch)
tree249155256c9731862717bee6d93ff55d4738294f /macosx/HBDVDDetector.m
parentb3d5861f702a187f0e67b4dad150c6678c2f5e96 (diff)
MacGUI: Fix a warning on 10.5
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1083 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBDVDDetector.m')
-rw-r--r--macosx/HBDVDDetector.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/macosx/HBDVDDetector.m b/macosx/HBDVDDetector.m
index 7360c0a9d..966e812ca 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;