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. Direct Show : "Mp3 Decoder DMO" filter fails to return any input pins

Direct Show : "Mp3 Decoder DMO" filter fails to return any input pins

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresquestionannouncement
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.
  • S Offline
    S Offline
    sdancer75
    wrote on last edited by
    #1

    Hi, The code below fails to get any input pins for the filter "Mp3 Decoder DMO". The class ID for the specific filter is {94297043-BD82-4DFD-B0DE-8177739C6D20} . Specifically, it fails at the very first while condition. I get S_FALSE which means "Did not retrieve as many pins as requested." Does it play any role that this specific filter is DMO (Direct Media Object) filter ? If this is the case, is there nay other way to get the input pins ? In my graphedit it connects and works just fine , but under my code it fails. Any recommendations ?

    IPin* Graph::GetPin(IBaseFilter *pFilter, PIN_DIRECTION PinDir, UCHAR PinCounter) {
    BOOL bFound = FALSE;
    IEnumPins *pEnum;
    IPin *pPin;
    HRESULT hr =S_OK;
    UCHAR localPinCounter = 0;

    hr = pFilter->EnumPins(&pEnum);
    if (SUCCEEDED(hr)) {
    
    		while(pEnum->Next(1, &pPin, 0) == S\_OK) {
    			PIN\_DIRECTION PinDirThis;
    			pPin->QueryDirection(&PinDirThis);
    			if (bFound = ( (PinDir == PinDirThis) && (PinCounter == localPinCounter) ) )
    				break;
    			pPin->Release();
    			localPinCounter++;
    		}
    
    		
    		pEnum->Release();
    
    } else {
    	
    	return 0;
    }
    

    Regards,

    sdancer75

    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