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
This commit is contained in:
sezero 2016-10-23 12:02:00 +03:00 committed by Sebastian Dröge
parent e938933167
commit ae2a5f1ba9

View file

@ -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);