fdsink: enable large file support in Android
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sat, 12 Dec 2015 06:14:32 +0000 (22:14 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sat, 12 Dec 2015 21:13:54 +0000 (13:13 -0800)
https://bugzilla.gnome.org/show_bug.cgi?id=758980

plugins/elements/gstfdsink.c

index fb65ac6..91d2175 100644 (file)
 #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,