mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 08:25:33 +00:00
filesrc: enable large file support in Android
https://bugzilla.gnome.org/show_bug.cgi?id=758980
This commit is contained in:
parent
b08946cd1b
commit
4347718bf1
1 changed files with 11 additions and 0 deletions
|
@ -65,6 +65,15 @@
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __BIONIC__ /* Android */
|
||||||
|
#undef lseek
|
||||||
|
#define lseek lseek64
|
||||||
|
#undef fstat
|
||||||
|
#define fstat fstat64
|
||||||
|
#undef off_t
|
||||||
|
#define off_t guint64
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -111,6 +120,8 @@ gst_open (const gchar * filename, int flags, int mode)
|
||||||
|
|
||||||
errno = save_errno;
|
errno = save_errno;
|
||||||
return retval;
|
return retval;
|
||||||
|
#elif defined (__BIONIC__)
|
||||||
|
return open (filename, flags | O_LARGEFILE, mode);
|
||||||
#else
|
#else
|
||||||
return open (filename, flags, mode);
|
return open (filename, flags, mode);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue