message: fix up enum value for GST_MESSAGE_DEVICE_CHANGED
authorTim-Philipp Müller <tim@centricular.com>
Mon, 5 Aug 2019 23:05:22 +0000 (00:05 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Tue, 6 Aug 2019 08:02:09 +0000 (08:02 +0000)
This was added in 1.16 and accidentally duplicated the value of
the existing GST_MESSAGE_REDIRECT.

As the only known user of this message is GStreamer core itself,
and it is quite an obscure message, it seems best to just fix up
the enum value even if that technically breaks API.

Fixes #418

gst/gstmessage.h

index 0f0bf309a96c7f67c880086264c90505463c9c23..9b46a2e43046220839974538d5ce1110cd3e35c2 100644 (file)
@@ -173,7 +173,7 @@ typedef enum
   GST_MESSAGE_STREAM_COLLECTION = GST_MESSAGE_EXTENDED + 4,
   GST_MESSAGE_STREAMS_SELECTED  = GST_MESSAGE_EXTENDED + 5,
   GST_MESSAGE_REDIRECT          = GST_MESSAGE_EXTENDED + 6,
-  GST_MESSAGE_DEVICE_CHANGED    = GST_MESSAGE_EXTENDED + 6,
+  GST_MESSAGE_DEVICE_CHANGED    = GST_MESSAGE_EXTENDED + 7,
   GST_MESSAGE_ANY               = (gint) (0xffffffff)
 } GstMessageType;