[gstreamer-bugs] [Bug 587052] [filesink.c] Support for files >4GB on windows makes filesink element to crash at gst_file_sink_do_seek()

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jun 30 09:26:35 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=587052

  GStreamer | gstreamer (core) | Ver: 0.10.23




------- Comment #10 from Andoni Morales  2009-06-30 16:26 UTC -------
You are right!

I think I found the right solution!!!
fileno() is deprecated in MSVC, and replaced with _fileno(). This works for me:

#ifdef G_OS_WIN32
#include <io.h>                 /* lseek, open, close, read */
#undef lseek
#define lseek _lseeki64
#undef off_t
#define off_t guint64
#ifdef _MSC_VER                /* Check if we are using MSVC */
#define fileno _fileno
#endif
#endif


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=587052.




More information about the Gstreamer-bugs mailing list