From 167554ec772f60bce0a810941819bd7d24d30276 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 Jul 2006 16:17:20 +0000 Subject: [PATCH] gst/gstmessage.h: Use a valid int for the _MESSAGE_ANY enum value to avoid compiler warnings. Original commit message from CVS: * gst/gstmessage.h: Use a valid int for the _MESSAGE_ANY enum value to avoid compiler warnings. --- ChangeLog | 6 ++++++ gst/gstmessage.h | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 03896016b3..a19158934b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-07-06 Wim Taymans + + * gst/gstmessage.h: + Use a valid int for the _MESSAGE_ANY enum value to avoid compiler + warnings. + 2006-07-06 Wim Taymans * libs/gst/base/gstbasesrc.c: (gst_base_src_class_init), diff --git a/gst/gstmessage.h b/gst/gstmessage.h index 1231003345..e33e257b45 100644 --- a/gst/gstmessage.h +++ b/gst/gstmessage.h @@ -59,7 +59,9 @@ typedef struct _GstMessageClass GstMessageClass; * * The different message types that are available. */ -/* NOTE: keep in sync with quark registration in gstmessage.c */ +/* NOTE: keep in sync with quark registration in gstmessage.c + * NOTE: keep GST_MESSAGE_ANY a valid gint to avoid compiler warnings. + */ typedef enum { GST_MESSAGE_UNKNOWN = 0, @@ -82,7 +84,7 @@ typedef enum GST_MESSAGE_SEGMENT_START = (1 << 16), GST_MESSAGE_SEGMENT_DONE = (1 << 17), GST_MESSAGE_DURATION = (1 << 18), - GST_MESSAGE_ANY = 0xffffffff + GST_MESSAGE_ANY = 0x7fffffff } GstMessageType; #include