спасибо администратору, который удалил весь второй листинг))
Код:
// берем пины
pAVIspliterOutV := GetPin(pAVIspliter, PINDIR_OUTPUT);
if not Assigned(pAVIspliterOutV) then begin
ShowMessage('Не удается получить pAVIspliterOutV');
exit;
end;
pVideodecoderIn := GetPin(pVideodecoder, PINDIR_INPUT);
if not Assigned(pVideodecoderIn) then begin
ShowMessage('Не удается получить pVideodecoderIn');
exit;
end;
pAudiodecoderIn := GetPin(pAudiodecoder, PINDIR_INPUT);
if not Assigned(pAudiodecoderIn) then begin
ShowMessage('Не удается получить pAudiodecoderIn');
exit;
end;
// соединяем
hr := pGraphBuilder.Connect(pAVIspliterOutV, pVideodecoderIn);
if FAILED(hr) then begin
ShowMessage('Не удается соединить фильтры pAVIspliterOutV и pVideodecoderIn');
exit;
end;
hr := pGraphBuilder.Connect(pAVIspliterOutV, pAudiodecoderIn);
if FAILED(hr) then begin
ShowMessage('Не удается соединить фильтры pAVIspliterOutV и pAudiodecoderIn');
exit;
end;
вот здесь должно быть выделено)