Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-12 05:59:32 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-12-14 12:23:11 +0300
commit3fd9d206faffead8fd3406ae8af11fb0e3d57ffe (patch)
treef00667d0eba839c7560d0f8bdf48befbc0786462
parent3e34af224a92636a86938ac514de3e68d95d445d (diff)
downloadbuffer: enable large file support on Android
https://bugzilla.gnome.org/show_bug.cgi?id=758980
-rw-r--r--plugins/elements/gstdownloadbuffer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/elements/gstdownloadbuffer.c b/plugins/elements/gstdownloadbuffer.c
index 83c28fa30d..f805036f7f 100644
--- a/plugins/elements/gstdownloadbuffer.c
+++ b/plugins/elements/gstdownloadbuffer.c
@@ -76,6 +76,10 @@
#include <unistd.h>
#endif
+#ifdef __BIONIC__
+#include <fcntl.h>
+#endif
+
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
@@ -878,7 +882,11 @@ gst_download_buffer_open_temp_location_file (GstDownloadBuffer * dlbuf)
/* make copy of the template, we don't want to change this */
name = g_strdup (dlbuf->temp_template);
+#ifdef __BIONIC__
+ fd = g_mkstemp_full (name, O_RDWR | O_LARGEFILE, S_IRUSR | S_IWUSR);
+#else
fd = g_mkstemp (name);
+#endif
if (fd == -1)
goto mkstemp_failed;