From: Reynaldo H. Verdejo Pinochet Date: Sat, 12 Dec 2015 02:59:32 +0000 (-0800) Subject: downloadbuffer: enable large file support on Android X-Git-Tag: 1.10.4~576 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63727152e041acc128101a1fb09a510b4cf732e3;p=platform%2Fupstream%2Fgstreamer.git downloadbuffer: enable large file support on Android https://bugzilla.gnome.org/show_bug.cgi?id=758980 --- diff --git a/plugins/elements/gstdownloadbuffer.c b/plugins/elements/gstdownloadbuffer.c index 83c28fa..f805036 100644 --- a/plugins/elements/gstdownloadbuffer.c +++ b/plugins/elements/gstdownloadbuffer.c @@ -76,6 +76,10 @@ #include #endif +#ifdef __BIONIC__ +#include +#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;