replaced depricated p2cstr with CopyPascalStringToC for OSX.
This commit is contained in:
@@ -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'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user