Click here to Skip to main content
15,902,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ShellExecute Pin
john563222-Oct-10 4:03
john563222-Oct-10 4:03 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 4:11
Code-o-mat22-Oct-10 4:11 
GeneralRe: ShellExecute Pin
john563222-Oct-10 5:46
john563222-Oct-10 5:46 
GeneralRe: ShellExecute [modified] Pin
Code-o-mat22-Oct-10 7:42
Code-o-mat22-Oct-10 7:42 
AnswerRe: ShellExecute Pin
GAJERA22-Oct-10 4:33
GAJERA22-Oct-10 4:33 
QuestionFailed to play .mpg file with directshow Pin
Chesnokov Yuriy21-Oct-10 22:53
professionalChesnokov Yuriy21-Oct-10 22:53 
AnswerRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 1:07
professionalSauro Viti22-Oct-10 1:07 
QuestionRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 1:51
professionalChesnokov Yuriy22-Oct-10 1:51 
I use intelligent connect. It should find all pins and connects them together automatically? How do I need to manage those pins manually?

//Add video file filter
IBaseFilter *pSrcFilter = NULL;
hr = m_pGraph->AddSourceFilter(fileName, L"Source Filter", &pSrcFilter);
if (FAILED(hr))
        return -3;

//Add Sample Grabber filter
IBaseFilter* pGrabberFilter = NULL;
hr = AddSampleGrabber(&pGrabberFilter);
if (FAILED(hr)) {
        pSrcFilter->Release();
        return -4;
}

IBaseFilter* pNullFilter = NULL;
hr = AddNullRenderer(&pNullFilter);
if (FAILED(hr)) {
        pGrabberFilter->Release();
        pSrcFilter->Release();
        return -5;
}        

// Render the preview pin on the video file filter
hr = m_pCapture->RenderStream(NULL, NULL,
                                pSrcFilter, pGrabberFilter, pNullFilter);


Addition of the NULL renderer and sample grabber are typical from MSDN

IBaseFilter* pFilter;
hr = CoCreateInstance(CLSID_NullRenderer, NULL, CLSCTX_INPROC_SERVER,
                        IID_IBaseFilter, (void **)&pFilter);        
if (FAILED(hr))
        return hr;

*ppNullFilter = pFilter;

hr = m_pGraph->AddFilter(pFilter, L"Null Renderer");
if (FAILED(hr)) {
        pFilter->Release();                
        return hr;
}

(*ppNullFilter)->AddRef();
        pFilter->Release();

Чесноков

AnswerRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 2:01
professionalSauro Viti22-Oct-10 2:01 
QuestionRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:05
professionalChesnokov Yuriy22-Oct-10 2:05 
AnswerRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:03
professionalChesnokov Yuriy22-Oct-10 2:03 
GeneralRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 2:17
professionalSauro Viti22-Oct-10 2:17 
AnswerRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:22
professionalChesnokov Yuriy22-Oct-10 2:22 
GeneralRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 2:30
professionalSauro Viti22-Oct-10 2:30 
AnswerRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:52
professionalChesnokov Yuriy22-Oct-10 2:52 
QuestionC Compilers which one to choose for performance Pin
Anurag Gandhi21-Oct-10 22:41
professionalAnurag Gandhi21-Oct-10 22:41 
AnswerRe: C Compilers which one to choose for performance PinPopular
Sauro Viti21-Oct-10 23:22
professionalSauro Viti21-Oct-10 23:22 
GeneralRe: C Compilers which one to choose for performance Pin
Anurag Gandhi22-Oct-10 1:22
professionalAnurag Gandhi22-Oct-10 1:22 
GeneralRe: C Compilers which one to choose for performance Pin
Sauro Viti22-Oct-10 1:56
professionalSauro Viti22-Oct-10 1:56 
GeneralRe: C Compilers which one to choose for performance Pin
Anurag Gandhi22-Oct-10 2:07
professionalAnurag Gandhi22-Oct-10 2:07 
GeneralRe: C Compilers which one to choose for performance Pin
Sauro Viti22-Oct-10 2:26
professionalSauro Viti22-Oct-10 2:26 
GeneralRe: C Compilers which one to choose for performance Pin
Joe Woodbury23-Oct-10 11:34
professionalJoe Woodbury23-Oct-10 11:34 
AnswerRe: C Compilers which one to choose for performance Pin
Aescleal21-Oct-10 23:27
Aescleal21-Oct-10 23:27 
AnswerRe: C Compilers which one to choose for performance Pin
Paul Michalik23-Oct-10 22:53
Paul Michalik23-Oct-10 22:53 
GeneralRe: C Compilers which one to choose for performance Pin
Anurag Gandhi24-Oct-10 0:52
professionalAnurag Gandhi24-Oct-10 0:52 

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.