Click here to Skip to main content
15,910,878 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionCan't deliver MediaSample to two different output pins - Directshow problem Pin
itchy237-Oct-08 2:13
itchy237-Oct-08 2:13 
I'm writing a transformfilter with 1 input and 2 output pins. I've derived my Transformfilter from CBaseFilter and the pins from CBaseInputPin and CBaseOutputPin. I'm pretty sure my Filter works because if I've only 1 Pin the sample process how it should, but if I add the second output pin the video stops with the first sample on one window a shows nothing on the second window.

When I debug the second time i call GetDeliveryBuffer i get the error code -2147220975.

Here is what i did in the method Receive:

hr = pOutputPin1->GetDeliveryBuffer(&pOutSample1, NULL, NULL, 0);
hr = Copy(pSample, pOutSample1);
hr = Transform1(pSample, pOutSample1);
hr = pOutputPin1->Deliver(pOutSample1);
pOutSample1->Release();

hr = pOutputPin2->GetDeliveryBuffer(&pOutSample2, NULL, NULL, 0);
hr = Copy(pSample, pOutSample2);
hr = Transform2(pSample, pOutSample2);
hr = pOutputPin2->Deliver(pOutSample2);
pOutSample2->Release();

What am i doing wrong?
AnswerRe: Can't deliver MediaSample to two different output pins - Directshow problem Pin
Mark Salsbery7-Oct-08 4:36
Mark Salsbery7-Oct-08 4:36 
AnswerRe: Can't deliver MediaSample to two different output pins - Directshow problem Pin
Mark Salsbery9-Oct-08 8:25
Mark Salsbery9-Oct-08 8:25 
GeneralRe: Can't deliver MediaSample to two different output pins - Directshow problem Pin
itchy239-Oct-08 21:09
itchy239-Oct-08 21:09 
QuestionEvent handling in C Pin
massaslayer6-Oct-08 4:39
massaslayer6-Oct-08 4:39 
AnswerRe: Event handling in C Pin
Mark Salsbery6-Oct-08 6:26
Mark Salsbery6-Oct-08 6:26 
QuestionProgram too big to fit in memory Pin
Cyrilix3-Oct-08 10:57
Cyrilix3-Oct-08 10:57 
AnswerRe: Program too big to fit in memory Pin
Cyrilix3-Oct-08 13:00
Cyrilix3-Oct-08 13:00 
GeneralRe: Program too big to fit in memory Pin
Mark Salsbery3-Oct-08 14:49
Mark Salsbery3-Oct-08 14:49 
GeneralRe: Program too big to fit in memory Pin
Cyrilix3-Oct-08 21:44
Cyrilix3-Oct-08 21:44 
GeneralRe: Program too big to fit in memory Pin
Mark Salsbery4-Oct-08 7:13
Mark Salsbery4-Oct-08 7:13 
GeneralRe: Program too big to fit in memory Pin
Cyrilix4-Oct-08 8:45
Cyrilix4-Oct-08 8:45 
AnswerRe: Program too big to fit in memory Pin
Mark Salsbery4-Oct-08 7:24
Mark Salsbery4-Oct-08 7:24 
GeneralRe: Program too big to fit in memory Pin
Cyrilix4-Oct-08 8:46
Cyrilix4-Oct-08 8:46 
QuestionString conversion in c++/CLI Pin
Robin Imrie1-Oct-08 4:05
professionalRobin Imrie1-Oct-08 4:05 
AnswerRe: String conversion in c++/CLI Pin
led mike1-Oct-08 4:36
led mike1-Oct-08 4:36 
GeneralRe: String conversion in c++/CLI Pin
Robin Imrie1-Oct-08 4:45
professionalRobin Imrie1-Oct-08 4:45 
Questiongtk installation Pin
SeshaSridhar1-Oct-08 1:00
SeshaSridhar1-Oct-08 1:00 
QuestionError while calling VC# function in VC++ Pin
Andy Rama29-Sep-08 0:36
Andy Rama29-Sep-08 0:36 
AnswerRe: Error while calling VC# function in VC++ Pin
led mike29-Sep-08 4:31
led mike29-Sep-08 4:31 
AnswerRe: Error while calling VC# function in VC++ Pin
Mark Salsbery29-Sep-08 7:27
Mark Salsbery29-Sep-08 7:27 
GeneralRe: Error while calling VC# function in VC++ Pin
George L. Jackson1-Oct-08 3:21
George L. Jackson1-Oct-08 3:21 
GeneralRe: Error while calling VC# function in VC++ Pin
Mark Salsbery1-Oct-08 4:51
Mark Salsbery1-Oct-08 4:51 
GeneralRe: Error while calling VC# function in VC++ Pin
Andy Rama3-Oct-08 19:16
Andy Rama3-Oct-08 19:16 
GeneralRe: Error while calling VC# function in VC++ Pin
Mark Salsbery4-Oct-08 6:42
Mark Salsbery4-Oct-08 6:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.