From f335187a9e0d0fa19d39aaeaf4aed3bd63b9c6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Loeuillet?= Date: Fri, 21 May 2004 23:28:57 +0000 Subject: [PATCH] second batch : remove ',' at end of enums as they could confuse older gcc, foreign compilers (forte) and gtk-doc (in ... Original commit message from CVS: second batch : remove ',' at end of enums as they could confuse older gcc, foreign compilers (forte) and gtk-doc (in gst-plugins/ext/ this time) --- ext/alsa/gstalsa.h | 2 +- ext/gnomevfs/gstgnomevfssink.c | 2 +- ext/gnomevfs/gstgnomevfssrc.c | 4 ++-- ext/ogg/gstoggdemux.c | 10 ++++++---- ext/ogg/gstoggmux.c | 2 +- ext/pango/gsttextoverlay.c | 2 +- ext/pango/gsttextoverlay.h | 4 ++-- ext/pango/gsttimeoverlay.c | 4 ++-- ext/vorbis/oggvorbisenc.c | 2 +- ext/vorbis/vorbisenc.c | 2 +- 10 files changed, 18 insertions(+), 16 deletions(-) diff --git a/ext/alsa/gstalsa.h b/ext/alsa/gstalsa.h index 1747262c70..cc32e44670 100644 --- a/ext/alsa/gstalsa.h +++ b/ext/alsa/gstalsa.h @@ -102,7 +102,7 @@ enum { GST_ALSA_OPEN = GST_ELEMENT_FLAG_LAST, GST_ALSA_RUNNING, GST_ALSA_CAPS_NEGO, - GST_ALSA_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 3, + GST_ALSA_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 3 }; typedef enum { diff --git a/ext/gnomevfs/gstgnomevfssink.c b/ext/gnomevfs/gstgnomevfssink.c index 2785bbe4ee..ce8f39ad31 100644 --- a/ext/gnomevfs/gstgnomevfssink.c +++ b/ext/gnomevfs/gstgnomevfssink.c @@ -55,7 +55,7 @@ typedef enum { GST_GNOMEVFSSINK_OPEN = GST_ELEMENT_FLAG_LAST, - GST_GNOMEVFSSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2, + GST_GNOMEVFSSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2 } GstGnomeVFSSinkFlags; diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index b10b4c36f3..2085254a8c 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -73,7 +73,7 @@ typedef enum { GST_GNOMEVFSSRC_OPEN = GST_ELEMENT_FLAG_LAST, - GST_GNOMEVFSSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2, + GST_GNOMEVFSSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2 } GstGnomeVFSSrcFlags; @@ -191,7 +191,7 @@ enum ARG_IRADIO_GENRE, ARG_IRADIO_URL, ARG_IRADIO_TITLE, - ARG_SEEKABLE, + ARG_SEEKABLE }; static void gst_gnomevfssrc_base_init (gpointer g_class); diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 90d375d534..df119c9bc4 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -149,8 +149,8 @@ enum enum { - ARG_0, - /* FILL ME */ + ARG_0 + /* FILL ME */ }; static GstStaticPadTemplate ogg_demux_src_template_factory = @@ -376,7 +376,8 @@ gst_ogg_demux_src_event (GstPad * pad, GstEvent * event) GST_OGG_SET_STATE (ogg, GST_OGG_STATE_SEEK); FOR_PAD_IN_CURRENT_CHAIN (ogg, pad, - pad->flags |= GST_OGG_PAD_NEEDS_DISCONT;); + pad->flags |= GST_OGG_PAD_NEEDS_DISCONT; + ); GST_DEBUG_OBJECT (ogg, "initiating seeking to offset %" G_GUINT64_FORMAT, offset); ogg->seek_pad = cur; @@ -423,7 +424,8 @@ gst_ogg_demux_handle_event (GstPad * pad, GstEvent * event) gst_event_unref (event); GST_FLAG_UNSET (ogg, GST_OGG_FLAG_WAIT_FOR_DISCONT); FOR_PAD_IN_CURRENT_CHAIN (ogg, pad, - pad->flags |= GST_OGG_PAD_NEEDS_DISCONT;); + pad->flags |= GST_OGG_PAD_NEEDS_DISCONT; + ); break; case GST_EVENT_EOS: if (ogg->state == GST_OGG_STATE_SETUP) { diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c index f0d3a7f6c6..115fabefb4 100644 --- a/ext/ogg/gstoggmux.c +++ b/ext/ogg/gstoggmux.c @@ -111,7 +111,7 @@ enum enum { - ARG_0, + ARG_0 }; static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c index 9468b12cfb..5e9cb4697c 100644 --- a/ext/pango/gsttextoverlay.c +++ b/ext/pango/gsttextoverlay.c @@ -25,7 +25,7 @@ enum ARG_HALIGN, ARG_X0, ARG_Y0, - ARG_FONT_DESC, + ARG_FONT_DESC }; diff --git a/ext/pango/gsttextoverlay.h b/ext/pango/gsttextoverlay.h index b039acac32..df5b5b5525 100644 --- a/ext/pango/gsttextoverlay.h +++ b/ext/pango/gsttextoverlay.h @@ -28,13 +28,13 @@ typedef enum _GstTextOverlayHAlign GstTextOverlayHAlign; enum _GstTextOverlayVAlign { GST_TEXT_OVERLAY_VALIGN_BASELINE, GST_TEXT_OVERLAY_VALIGN_BOTTOM, - GST_TEXT_OVERLAY_VALIGN_TOP, + GST_TEXT_OVERLAY_VALIGN_TOP }; enum _GstTextOverlayHAlign { GST_TEXT_OVERLAY_HALIGN_LEFT, GST_TEXT_OVERLAY_HALIGN_CENTER, - GST_TEXT_OVERLAY_HALIGN_RIGHT, + GST_TEXT_OVERLAY_HALIGN_RIGHT }; diff --git a/ext/pango/gsttimeoverlay.c b/ext/pango/gsttimeoverlay.c index 3ec20bcbb6..d42264643a 100644 --- a/ext/pango/gsttimeoverlay.c +++ b/ext/pango/gsttimeoverlay.c @@ -53,8 +53,8 @@ enum enum { - ARG_0, - /* FILL ME */ + ARG_0 + /* FILL ME */ }; static void gst_timeoverlay_base_init (gpointer g_class); diff --git a/ext/vorbis/oggvorbisenc.c b/ext/vorbis/oggvorbisenc.c index 1e95c13aa9..ceca4e59ff 100644 --- a/ext/vorbis/oggvorbisenc.c +++ b/ext/vorbis/oggvorbisenc.c @@ -57,7 +57,7 @@ enum ARG_QUALITY, ARG_SERIAL, ARG_MANAGED, - ARG_LAST_MESSAGE, + ARG_LAST_MESSAGE }; static const GstFormat * diff --git a/ext/vorbis/vorbisenc.c b/ext/vorbis/vorbisenc.c index 01de216286..696cda44dd 100644 --- a/ext/vorbis/vorbisenc.c +++ b/ext/vorbis/vorbisenc.c @@ -55,7 +55,7 @@ enum ARG_MIN_BITRATE, ARG_QUALITY, ARG_MANAGED, - ARG_LAST_MESSAGE, + ARG_LAST_MESSAGE }; /* FIXME: