summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-11 22:14:32 -0800
committerSebastian Dröge <sebastian@centricular.com>2015-12-14 10:23:25 +0100
commitef9a101727a8c62a93da807919d88f6f187407da (patch)
tree78a19dab7fc4cfef931c9250040ebc378fb0f84a
parent6a4d0f27a76c455e03e3e53254ec45951b3cb7a7 (diff)
downloadgstreamer-ef9a101727a8c62a93da807919d88f6f187407da.tar.gz
fdsink: enable large file support in Android
https://bugzilla.gnome.org/show_bug.cgi?id=758980
-rw-r--r--plugins/elements/gstfdsink.c9
1 files changed, 9 insertions, 0 deletions
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,