From a247c14d24b8edc4533cba6bf1b9240a4bf1463a Mon Sep 17 00:00:00 2001 From: gambas Date: Thu, 28 Mar 2019 00:07:05 +0100 Subject: [PATCH] Compile with GStreamer < 1.16. [GB.MEDIA] * BUG: Compile with GStreamer < 1.16. --- gb.media/src/c_media.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gb.media/src/c_media.c b/gb.media/src/c_media.c index ee447bf5c..86a9c594b 100644 --- a/gb.media/src/c_media.c +++ b/gb.media/src/c_media.c @@ -31,6 +31,13 @@ #include #include +#if GST_CHECK_VERSION(1, 16, 0) +#else +#define GST_SEEK_FLAG_TRICKMODE GST_SEEK_FLAG_SKIP +#define GST_SEEK_FLAG_TRICKMODE_KEY_UNITS (1 << 7) +#define GST_SEEK_FLAG_TRICKMODE_NO_AUDIO (1 << 8) +#endif + static void *_from_element = NULL; void MEDIA_raise_event(void *_object, int event)