Actions
Support Request #14745
closedCreating output pins via qml not calling RequestDynamicOutputPin
Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
EFS
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 10 64bit
Topic:
ADTF::SDK
FAQ Links:
Description
Supportanfrage
Ich habe folgendes Problem: wenn ich via qml dynamische Output Pins erzeuge (sind im Filtergraphen zu sehen) wird für diese RequestDynamicOutputPin nicht gecalled, für welche die ich selber im FilterGraphen erzeuge aber schon. Ist das bekannt / umgehbar?
Lösung
Wenn ein Pin nicht mit einem Sample Stream verbunden ist, fließen auch keine Daten, die Callbacks werden dann auch nicht gerufen.
Hier ein kleines Bsp:
Die Pins data_ce und data_ce_out hab ich im CE angelegt.
Die Pins data_qml und data_qml_out kommen vom Filter Editor:
EditorPluginBase
{
id: root
onExecute:
{
createInputPin("data_qml")
createOutputPin("data_qml_out")
}
}
Im Filter selbst mach ich folgendes:
tResult cDynamicFilter::RequestDynamicOutputPin(const tChar* strName,
const adtf::ucom::ant::iobject_ptr<const adtf::streaming::ant::IStreamType>& pType)
{
LOG_INFO("########### %s", strName);
RETURN_NOERROR;
}
Und beim Launch wird die Funktion auch wunderbar gecalled:
// ... 2021-07-16 13:06:40 [INFO]: ########### data_ce_out [synchronizer_filter.cpp(64)] 2021-07-16 13:06:40 [INFO]: ########### data_qml_out [synchronizer_filter.cpp(64)]
Files
Actions