summaryrefslogtreecommitdiff
path: root/ext/timidity
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2011-07-18 14:53:31 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-07-20 13:11:53 -0400
commite8d24859ca5629198c581b570402e9a459839d7c (patch)
tree3850a621cea61362bdc7afb243f001e55104118c /ext/timidity
parent2b7e9abc59b4bb03a490797688348bb77b3d0e46 (diff)
downloadgstreamer-plugins-bad-e8d24859ca5629198c581b570402e9a459839d7c.tar.gz
Fix compilation for unused but not set
https://bugzilla.gnome.org/show_bug.cgi?id=654572
Diffstat (limited to 'ext/timidity')
-rw-r--r--ext/timidity/gsttimidity.c3
-rw-r--r--ext/timidity/gstwildmidi.c7
2 files changed, 6 insertions, 4 deletions
diff --git a/ext/timidity/gsttimidity.c b/ext/timidity/gsttimidity.c
index 997b0b20b..cbbcc0da1 100644
--- a/ext/timidity/gsttimidity.c
+++ b/ext/timidity/gsttimidity.c
@@ -108,12 +108,9 @@ gst_timidity_base_init (gpointer gclass)
static void
gst_timidity_class_init (GstTimidityClass * klass)
{
- GObjectClass *gobject_class;
GstElementClass *gstelement_class;
- gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
-
gstelement_class->change_state = gst_timidity_change_state;
}
diff --git a/ext/timidity/gstwildmidi.c b/ext/timidity/gstwildmidi.c
index 4d5c0e36d..6def9f946 100644
--- a/ext/timidity/gstwildmidi.c
+++ b/ext/timidity/gstwildmidi.c
@@ -443,7 +443,10 @@ gst_wildmidi_do_seek (GstWildmidi * wildmidi, GstEvent * event)
GstSeekFlags flags;
GstSeekType start_type, stop_type;
gint64 start, stop;
- gboolean flush, update, accurate;
+ gboolean flush, update;
+#ifdef HAVE_WILDMIDI_0_2_2
+ gboolean accurate;
+#endif
gboolean res;
unsigned long int sample;
GstSegment *segment;
@@ -472,7 +475,9 @@ gst_wildmidi_do_seek (GstWildmidi * wildmidi, GstEvent * event)
return res;
flush = ((flags & GST_SEEK_FLAG_FLUSH) == GST_SEEK_FLAG_FLUSH);
+#ifdef HAVE_WILDMIDI_0_2_2
accurate = ((flags & GST_SEEK_FLAG_ACCURATE) == GST_SEEK_FLAG_ACCURATE);
+#endif
if (flush) {
GST_DEBUG ("performing flush");