Skip to content

Set src element on inference bus messages#54

Merged
ferjm merged 1 commit into
mainfrom
src-element
Jun 27, 2026
Merged

Set src element on inference bus messages#54
ferjm merged 1 commit into
mainfrom
src-element

Conversation

@ferjm

@ferjm ferjm commented Jun 27, 2026

Copy link
Copy Markdown
Member

The video inference element posted its Element messages with gst::message::Element::new, which leaves the message src unset. Bus consumers rely on src to attribute each message to the element that produced it, so unattributed messages can't be matched back to this element on shared buses with multiple inference variants.

Build the messages with Element::builder(s).src(&*self.obj()).build() at every post site in the video element (inference results, error, visual-anomaly, object-tracking, and classification fallbacks) so each message carries its producing element.

Add an e2e regression test asserting that inference element messages expose a non-empty src.

The video inference element posted its Element messages with
gst::message::Element::new, which leaves the message src unset. Bus
consumers rely on src to attribute each message to the element that
produced it, so unattributed messages can't be matched back to this
element on shared buses with multiple inference variants.

Build the messages with Element::builder(s).src(&*self.obj()).build()
at every post site in the video element (inference results, error,
visual-anomaly, object-tracking, and classification fallbacks) so each
message carries its producing element.

Add an e2e regression test asserting that inference element messages
expose a non-empty src.
@ferjm ferjm merged commit 9c07c83 into main Jun 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant