mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
downloadbuffer: enable large file support on Android
https://bugzilla.gnome.org/show_bug.cgi?id=758980
This commit is contained in:
parent
3e34af224a
commit
3fd9d206fa
1 changed files with 8 additions and 0 deletions
|
@ -76,6 +76,10 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __BIONIC__
|
||||||
|
#include <fcntl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
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 */
|
/* make copy of the template, we don't want to change this */
|
||||||
name = g_strdup (dlbuf->temp_template);
|
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);
|
fd = g_mkstemp (name);
|
||||||
|
#endif
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
goto mkstemp_failed;
|
goto mkstemp_failed;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue