GstEnginePipeline: consistently update `element_link` with last element linked

This commit is contained in:
Roman Lebedev 2023-08-02 02:31:11 +03:00
parent 1805ebcad3
commit 01959b028a
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
1 changed files with 2 additions and 0 deletions

View File

@ -736,6 +736,7 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
error = "Failed to link audio sink converter.";
return false;
}
element_link = audiosinkconverter;
{
GstCaps *caps = gst_caps_new_empty_simple("audio/x-raw");
@ -753,6 +754,7 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
error = "Failed to link audio sink converter to audio sink with filter for " + output_;
return false;
}
element_link = audiosink_;
}
{ // Add probes and handlers.