Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible types: 'PAMMediaType' and '_AMMediaType' #2

Open
SRS-Nick opened this issue May 31, 2016 · 2 comments
Open

Incompatible types: 'PAMMediaType' and '_AMMediaType' #2

SRS-Nick opened this issue May 31, 2016 · 2 comments

Comments

@SRS-Nick
Copy link

Hello,

I have been using the VFrames.PAS for some time successfully with Delphi 2010 and
recently I've upgraded to Delphi 10.1 Berlin, then loaded my project in, AS IS, but now
receive an error message in the file called VSample.Pas, which apparently gets called
by the VFrames.pas file.

// ERROR MESSAGE from compiler
[dcc32 Error] VSample.pas(1177): E2010 Incompatible types: 'PAMMediaType' and '_AMMediaType'

Below is the section is VSample.pas which is generating the error.
the following statement is flagged.
Result := pSC.SetFormat(ppmt^);

// Section of error
IF Succeeded(Result) then
begin
piCount := 0;
piSize := 0;
pSC.GetNumberOfCapabilities(piCount, piSize);
p := @VideoStreamConfigCaps;
Result := pSC.GetStreamCaps(ListIndex, ppmt, p^);
IF Succeeded(Result) then
Result := pSC.SetFormat(ppmt^);
end;

@tomlin5278
Copy link

Result := pSC.SetFormat(ppmt^); <----------- ppmt^ change to "ppmt"

@cutec-chris
Copy link

I cant find this Code in actual VFrames.pas nor VSample.pas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants