mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
e938933167
commit
ae2a5f1ba9
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue