diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-12-07 20:27:45 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-12-09 14:15:26 -0800 |
commit | a7f8ad9c9a1a8842b55db4aec639a5f579cab345 (patch) | |
tree | 67e17eef0b4308933bb7e6eb4d7a8d025a15ea9a /plugins | |
parent | add4526314af627be2d2485950bf56ca02ddd8e1 (diff) |
filesrc: enable large file support in Android
https://bugzilla.gnome.org/show_bug.cgi?id=758980
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/elements/gstfilesrc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index f99245a79..27ec84bf9 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -65,6 +65,15 @@ # include <unistd.h> #endif +#ifdef __BIONIC__ /* Android */ +#undef lseek +#define lseek lseek64 +#undef fstat +#define fstat fstat64 +#undef off_t +#define off_t guint64 +#endif + #include <errno.h> #include <string.h> @@ -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 |