replaced depricated p2cstr with CopyPascalStringToC for OSX.

This commit is contained in:
2003-05-09 13:07:41 +00:00
parent 07d97ff881
commit 29806ccb0d

View File

@@ -570,6 +570,7 @@ int get_qtcodec_settings(void)
// Component c = 0; // Component c = 0;
// ComponentDescription cd; // ComponentDescription cd;
CodecInfo ci; CodecInfo ci;
char str[255];
// cd.componentType = StandardCompressionType; // cd.componentType = StandardCompressionType;
// cd.componentSubType = StandardCompressionSubType; // cd.componentSubType = StandardCompressionSubType;
@@ -632,7 +633,8 @@ int get_qtcodec_settings(void)
SCGetInfo(qcdx->theComponent, scDataRateSettingsType, &qcdx->aDataRateSetting); SCGetInfo(qcdx->theComponent, scDataRateSettingsType, &qcdx->aDataRateSetting);
GetCodecInfo (&ci, qcdx->gSpatialSettings.codecType, 0); GetCodecInfo (&ci, qcdx->gSpatialSettings.codecType, 0);
sprintf(qtcdname,"Codec: %s", p2cstr(ci.typeName)); CopyPascalStringToC(ci.typeName, str);
sprintf(qtcdname,"Codec: %s", str);
// framerate jugglin' // framerate jugglin'