diff options
author | sezero <sezero@users.sourceforge.net> | 2016-10-23 12:02:00 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-10-31 12:50:56 +0200 |
commit | ae2a5f1ba928dfb61712d073b49d4cd37b5d6aa7 (patch) | |
tree | c28f56257b4a5811bde87fedf3c2519049f37e1d | |
parent | e938933167c494cdca443334f658b02a03c4486b (diff) | |
download | gstreamer-plugins-bad-ae2a5f1ba928dfb61712d073b49d4cd37b5d6aa7.tar.gz |
timidity: add support for libtimidity-0.2.x
mid_istream_open_mem() doesn't accept an autofree argument as of
libtimidity >= 0.2.0
https://bugzilla.gnome.org/show_bug.cgi?id=772503
-rw-r--r-- | ext/timidity/gsttimidity.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/timidity/gsttimidity.c b/ext/timidity/gsttimidity.c index 207869400..0b3f3769a 100644 --- a/ext/timidity/gsttimidity.c +++ b/ext/timidity/gsttimidity.c @@ -628,8 +628,12 @@ gst_timidity_loop (GstPad * sinkpad) GST_DEBUG_OBJECT (timidity, "Parsing song"); +#if defined(LIBTIMIDITY_VERSION) && LIBTIMIDITY_VERSION < 0x000200L stream = mid_istream_open_mem (timidity->mididata, timidity->mididata_size, 0); +#else + stream = mid_istream_open_mem (timidity->mididata, timidity->mididata_size); +#endif timidity->song = mid_song_load (stream, timidity->song_options); mid_istream_close (stream); |