mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
openmpt: update from now deprecated api
https://lib.openmpt.org/doc/classopenmpt_1_1module.html#ab2695af0baa274054f5687741fa7c05b Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2779>
This commit is contained in:
parent
aea9cb1b2b
commit
f0cc913621
1 changed files with 6 additions and 0 deletions
|
@ -562,8 +562,14 @@ gst_openmpt_dec_load_from_buffer (GstNonstreamAudioDecoder * dec,
|
|||
* need to query it here, *before* any openmpt_module_select_subsong()
|
||||
* calls are done */
|
||||
{
|
||||
|
||||
#if OPENMPT_API_VERSION_AT_LEAST(0,5,0)
|
||||
gchar const *subsong_cstr =
|
||||
openmpt_module_ctl_get_text (openmpt_dec->mod, "subsong");
|
||||
#else
|
||||
gchar const *subsong_cstr =
|
||||
openmpt_module_ctl_get (openmpt_dec->mod, "subsong");
|
||||
#endif
|
||||
gchar *endptr;
|
||||
|
||||
if (subsong_cstr != NULL) {
|
||||
|
|
Loading…
Reference in a new issue