Official DirectShow PushSource Desktop filter example is showing white screen instead of desktop image in GraphEdit

alokmahor 1 Reputation point
2021-12-28T03:26:55.9+00:00

I am learning Directshow filter development. I tried to compile and test offical example filter given at Push Source Filters Sample

In this sample code there are three filters

  • CPushSourceBitmap: Single bitmap (loaded from current directory)
  • CPushSourceBitmapSet: Set of bitmaps (loaded from current directory)
  • CPushSourceDesktop: Copy of current desktop image (GDI only)

After compiling and building I registered filter using command

regsvr32.exe some_path\bin\x64\Debug\PushSource.dll

Then I inserted PushSource Dektop Filter into GraphEdit and rendered pin.

CPycj.png

gHqr0.png

On playing I am seeing white screen instead of desktop view.

What I am missing?

I am using Windows 10 Home edition as OS on i3 processor.

Windows development Windows API - Win32
Developer technologies C++
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 21,646 Reputation points
    2021-12-28T08:18:58.197+00:00

    Hello,
    Welcome to Microsoft Q&A!

    I conducted the test according to your sample, and I did not reproduce your condition, and pushsource.dll should be 32 bits. Why is yours in a 64 bit directory? Could you please check if your DLL is correct.

    I used the DLL generated by the official sample, ( C:....\Win7_SDK_Samples\multimedia\directshow\filters\pushsource )

    160867-my-sample.gif

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.