micha137 / dspack-continued-mirror-for-delphinus Goto Github PK
View Code? Open in Web Editor NEWEasy use of Microsoft DirectShow in Delphi for Win32 AND Win64
Easy use of Microsoft DirectShow in Delphi for Win32 AND Win64
Hello,
It compil on Delphi 10.4 and 11 but can't install design package.
Get error modul not found
How debug package install for fix that ? I don't find :(
The following lines of code don't compile:
function TThreadedQueueIMediaSampleHelper.GetQueue: TArrayIMediaSample;
begin
Result := TArrayIMediaSample(FQueue);
end;
And this:
function TThreadedQueueIMediaSampleHelper.GetQueueOffset: Integer;
begin
Result := FQueueOffset;
end;
In file https://github.com/micha137/dspack-continued-mirror-for-delphinus/blob/master/Demos/D6-D7/Filters/Async/UAsyncRdr.pas, function TBCAsyncOutputPin.GetMediaType results in an AV in Graphstudionext.
REproduction: build an register filter, load filter in Graphstudionext, right-click the output pin an select Properties. Application crashes as an AV has occured.
I think error is in function below, where parameter MediaType may not be initialized (nil). In that case, CopyMEmory results in an AV. I suggest modification as below: "if not Assigned(MediaType)...".
What do you think?
function TBCAsyncOutputPin.GetMediaType(Position: Integer;
out MediaType: PAMMediaType): HResult;
begin
if (Position < 0) then
Result := E_INVALIDARG
else
if (Position > 0) then
Result := VFW_S_NO_MORE_ITEMS
else
begin
if (FReader = nil) then
begin
Result := E_UNEXPECTED;
Exit;
end;
if not Assigned(MediaType) then
begin
MediaType := CoTaskMemAlloc(SizeOf(TAMMediaType));
end;
CopyMemory(MediaType, FReader.LoadType, SizeOf(TAMMediaType));
Result := S_OK;
end;
end;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.