From a7f8ad9c9a1a8842b55db4aec639a5f579cab345 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Mon, 7 Dec 2015 20:27:45 -0800 Subject: [PATCH] filesrc: enable large file support in Android https://bugzilla.gnome.org/show_bug.cgi?id=758980 --- plugins/elements/gstfilesrc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index f99245a..27ec84b 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -65,6 +65,15 @@ # include #endif +#ifdef __BIONIC__ /* Android */ +#undef lseek +#define lseek lseek64 +#undef fstat +#define fstat fstat64 +#undef off_t +#define off_t guint64 +#endif + #include #include @@ -111,6 +120,8 @@ gst_open (const gchar * filename, int flags, int mode) errno = save_errno; return retval; +#elif defined (__BIONIC__) + return open (filename, flags | O_LARGEFILE, mode); #else return open (filename, flags, mode); #endif -- 2.7.4