[gst-devel] large file support

vishnu at pobox.com vishnu at pobox.com
Thu Sep 13 16:29:02 CEST 2001


The following patch to configure.base solves the problems with
large files and filesrc.  i'm surprised that no further changes
were required to filesrc, but it suddenly works fine:

  ./gstreamer-launch filesrc location=/opt/vast/cache/gwh.vob ! fakesink

produces lots of:

  fakesink: chain   ******* (fakesink0:sink)< (4096 bytes, -1)

i haven't tested all the plugins, but things should be mostly OK.
Can i commit the attached patch?

-- 
Victory to the Divine Mother!!
  http://sahajayoga.org
-------------- next part --------------
Index: configure.base
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/configure.base,v
retrieving revision 1.80
diff -u -p -r1.80 configure.base
--- configure.base	2001/09/06 20:12:17	1.80
+++ configure.base	2001/09/13 23:23:21
@@ -168,6 +168,25 @@ AC_MSG_RESULT(no)
 )
 
 
+AC_MSG_CHECKING(for large file support)
+AC_TRY_RUN([
+#define _LARGEFILE_SOURCE
+#define _FILE_OFFSET_BITS 64
+#include <sys/types.h>
+int main () { return !(sizeof(off_t) == 8); }
+],
+[
+AC_MSG_RESULT(yes)
+CORE_CFLAGS="$CORE_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+GST_DEFINE_CFLAGS="$GST_DEFINE_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+],
+[
+AC_MSG_RESULT(no)
+],
+[
+AC_MSG_RESULT(no)
+])
+
 
 dnl Check for essential libraries first:
 dnl ====================================


More information about the gstreamer-devel mailing list