mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
spc: Make the SPC plugin work with the latest libgme release
gme_enable_accuracy() was added in SVN trunk and is not yet in any release.
This commit is contained in:
parent
4394b1a61c
commit
de03453f6d
2 changed files with 8 additions and 1 deletions
|
@ -1383,6 +1383,12 @@ AG_GST_CHECK_FEATURE(SPC, [spc decoder], spc, [
|
|||
], [
|
||||
HAVE_SPC=no
|
||||
])
|
||||
|
||||
if test "x$HAVE_SPC" = "xyes"; then
|
||||
AC_CHECK_LIB(gme, gme_enable_accuracy, [
|
||||
AC_DEFINE(HAVE_LIBGME_ACCURACY, 1, [Define if gme 0.5.6 or newer is available])
|
||||
])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl *** swfdec ***
|
||||
|
|
|
@ -541,9 +541,10 @@ spc_setup (GstSpcDec * spc)
|
|||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBGME_ACCURACY
|
||||
/* TODO: Is it worth it to make this optional? */
|
||||
gme_enable_accuracy (spc->player, 1);
|
||||
#endif
|
||||
gme_start_track (spc->player, 0);
|
||||
|
||||
gst_pad_push_event (spc->srcpad, gst_event_new_new_segment (FALSE, 1.0,
|
||||
|
|
Loading…
Reference in a new issue