Coder Social home page Coder Social logo

micha137 / dspack-continued-mirror-for-delphinus Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 11.0 2.01 MB

Easy use of Microsoft DirectShow in Delphi for Win32 AND Win64

Batchfile 0.01% C++ 0.03% Pascal 84.58% HTML 0.38% C 15.01%
dspack microsoft-directshow delphinuspackage

dspack-continued-mirror-for-delphinus's People

Contributors

cwbudde avatar jaydi85 avatar micha137 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dspack-continued-mirror-for-delphinus's Issues

Delphi 10.4 and up

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 :(

Some small issues in the code

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;

Async Source filter demo: AV in Grapgstudionext when trying to view Pin properties for disconnected filter

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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.