diff options
author | ritsuka <[email protected]> | 2008-04-26 07:42:13 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2008-04-26 07:42:13 +0000 |
commit | c6d8d625e66afcfe13d78d94330d299caef875ff (patch) | |
tree | 91bc4a11501c1dd49b623dc8800aff0cf1386195 /macosx | |
parent | 0d97f62d84bc4a5975ff7bc6a5a1aefaabc96daf (diff) |
MacGUI: remove some old 10.4 specific code in HBDVDDetector. Patch by blindjimmy
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1442 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBDVDDetector.m | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/macosx/HBDVDDetector.m b/macosx/HBDVDDetector.m index 49e192ce7..fb9541dab 100644 --- a/macosx/HBDVDDetector.m +++ b/macosx/HBDVDDetector.m @@ -83,10 +83,10 @@ - (NSString *)bsdNameForPath { OSStatus err; - FSRef ref; - err = FSPathMakeRef( (const UInt8 *) [path fileSystemRepresentation], + FSRef ref; + err = FSPathMakeRef( (const UInt8 *) [path fileSystemRepresentation], &ref, NULL ); - if( err != noErr ) + if( err != noErr ) { return nil; } @@ -101,28 +101,17 @@ } FSVolumeRefNum volRefNum = catalogInfo.volume; - // 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 + // Now let's get the device name + GetVolParmsInfoBuffer volumeParms; err = FSGetVolumeParms ( volRefNum, &volumeParms, sizeof( volumeParms ) ); - #endif if( err != noErr ) { return nil; } - // A version 4 GetVolParmsInfoBuffer contains the BSD node name in the vMDeviceID field. - // It is actually a char * value. This is mentioned in the header CoreServices/CarbonCore/Files.h. + // A version 4 GetVolParmsInfoBuffer contains the BSD node name in the vMDeviceID field. + // It is actually a char * value. This is mentioned in the header CoreServices/CarbonCore/Files.h. return [NSString stringWithCString:(char *)volumeParms.vMDeviceID]; } |