Hi,
> I've tried ACELP codec that is failing to connect the output pin. Do you
> have any idea why this happens? I don't know very much about DS
> architecture, except what i learned converting your code, but MS docs says:
>
> HRESULT ReceiveConnection(IPin * pConnector,
> AM_MEDIA_TYPE *pmt);
> "This method is intended for input pins only. Output pins should
> implement this to return an error. The pin should verify that it accepts
> the media type passed to it and return S_OK if so."
>
> Perhaps the acelp codec is doing the right thing??
Yes, i think you're right.
I've changed it to Connect, and also tried to swap pings, no success:
original:
result = m_pOutputPin->vt->ReceiveConnection(m_pOutputPin,
m_pOurOutput,
m_pDestType);
fails.
v1:
result = m_pOurOutput->vt->ReceiveConnection(m_pOurOutput,
m_pOutputPin,
m_pDestType);
retusn 0, but sig11 in decoder
v2:
result = m_pOutputPin->vt->Connect(m_pOutputPin,
m_pOurOutput,
m_pDestType);
fail same way as original
v3:
result = m_pOurOutput->vt->Connect(m_pOurOutput,
m_pOutputPin,
m_pDestType);
return 0 but sig11 same way as v1
btw, in COutputPin_Connect():
//return E_NOTIMPL;
return 0;// XXXXXXXXXXXXX CHECKME XXXXXXXXXXXXXXX
// if I put return 0; here, it crashes
so it seems to be unimplemented :(((
A'rpi / Astral & ESP-team
--
mailto:[EMAIL PROTECTED]
http://esp-team.scene.hu
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile