From 806b48f6ba099698277557fcaf358aa719335b99 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Fri, 11 Dec 2015 22:14:32 -0800 Subject: [PATCH] fdsink: enable large file support in Android https://bugzilla.gnome.org/show_bug.cgi?id=758980 --- plugins/elements/gstfdsink.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/elements/gstfdsink.c b/plugins/elements/gstfdsink.c index fb65ac6b64..91d2175f67 100644 --- a/plugins/elements/gstfdsink.c +++ b/plugins/elements/gstfdsink.c @@ -68,6 +68,15 @@ #define off_t guint64 #endif +#ifdef __BIONIC__ /* Android */ +#undef lseek +#define lseek lseek64 +#undef fstat +#define fstat fstat64 +#undef off_t +#define off_t guint64 +#endif + static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,