Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DirectShow 8.1 .. Problem Connecting two filters.

DirectShow 8.1 .. Problem Connecting two filters.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 404410
    wrote on last edited by
    #1

    I am trying to connect 3 filter together.. pSrc is my souce capture device filter.. it is connected to a smartTee filter through RenderStream method,(this part works ok). However, when i tried to connect the preview pin from smartTee filter to the input of my VideoRender filter it doesn't work.. can someone see where the problem is? CoCreateInstance(CLSID_SmartTee, NULL, CLSCTX_INPROC, IID_IBaseFilter, (void **)&smartTee); CoCreateInstance(CLSID_VideoRenderer,NULL, CLSCTX_INPROC, IID_IBaseFilter,(void**)&VideoRender); pGraph->AddFilter(VideoRender,L"Video Render Device"); pGraph->AddFilter(smartTee, L"Smart Tea"); pBuilder->RenderStream(NULL, NULL,pSrc, NULL, smartTee); IPin *pPinOut, // Video port pin on capture filter. *pPinIn; // Input pin on Overlay Mixer. // Find the video port pin. pBuilder->FindPin( smartTee, // Pointer to capture filter. PINDIR_OUTPUT, // Find an output pin. &PIN_CATEGORY_PREVIEW , // Find a video port pin. NULL, // Any media type. TRUE, // Pin must be unconnected. 0, // Retrieve first matching pin. &pPinOut // Address of pointer to pin. ); // Retrieve input pin 0 on the overlay mixer. pBuilder->FindPin(VideoRender, PINDIR_INPUT, NULL, NULL, TRUE, 0, &pPinIn); //Connect the two pins. pGraph->Connect(pPinOut, pPinIn);

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups