GST_MESSAGE_DEVICE_CHANGED duplicates GST_MESSAGE_REDIRECT
I just noticed that !84 (merged) introduced an API bug in 1.16.0 by adding a new message enum (GST_MESSAGE_DEVICE_CHANGED) with the same value as the existing (GST_MESSAGE_REDIRECT):
GST_MESSAGE_REDIRECT = GST_MESSAGE_EXTENDED + 6,
- GST_MESSAGE_DEVICE_CHANGED = GST_MESSAGE_EXTENDED + 6,
Unfortunately I've noticed way too late as it's already released and can't be changed without breaking ABI.
A test that has a case statement with all possible GstMessage enum values would have caught this as a duplicate. If it has no default: statement, it'd also fail if people add new enums without adding them to the test.