Commit 9c07c83
authored
Set src element on inference bus messages (#54)
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.1 parent cd771c3 commit 9c07c83
2 files changed
Lines changed: 45 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
901 | | - | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
902 | 904 | | |
903 | 905 | | |
904 | 906 | | |
| |||
1061 | 1063 | | |
1062 | 1064 | | |
1063 | 1065 | | |
1064 | | - | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1065 | 1069 | | |
1066 | 1070 | | |
1067 | 1071 | | |
| |||
1148 | 1152 | | |
1149 | 1153 | | |
1150 | 1154 | | |
1151 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
1152 | 1158 | | |
1153 | 1159 | | |
1154 | 1160 | | |
| |||
1229 | 1235 | | |
1230 | 1236 | | |
1231 | 1237 | | |
1232 | | - | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1233 | 1241 | | |
1234 | 1242 | | |
1235 | 1243 | | |
| |||
1270 | 1278 | | |
1271 | 1279 | | |
1272 | 1280 | | |
1273 | | - | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1274 | 1284 | | |
1275 | 1285 | | |
1276 | 1286 | | |
| |||
1312 | 1322 | | |
1313 | 1323 | | |
1314 | 1324 | | |
1315 | | - | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1316 | 1328 | | |
1317 | 1329 | | |
1318 | 1330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
203 | 230 | | |
204 | 231 | | |
205 | 232 | | |
| |||
0 commit comments