mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
queue2: enable large file support on Android
https://bugzilla.gnome.org/show_bug.cgi?id=758980
This commit is contained in:
parent
5261283dd9
commit
ea8bbd58df
1 changed files with 14 additions and 0 deletions
|
@ -73,6 +73,14 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef __BIONIC__ /* Android */
|
||||
#undef lseek
|
||||
#define lseek lseek64
|
||||
#undef off_t
|
||||
#define off_t guint64
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
|
@ -1543,7 +1551,13 @@ gst_queue2_open_temp_location_file (GstQueue2 * queue)
|
|||
|
||||
/* make copy of the template, we don't want to change this */
|
||||
name = g_strdup (queue->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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue