[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 07:30:14 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 #8 from Andoni Morales  2009-06-30 14:30 UTC -------
The problem is in fileno(). As you said the Mingw CRT and the MSVC CRT have
different FILE structures that may be incompatibles. I fixed the bug in the
following way:

 -filedesc = fileno(filesink->file);
 +filedesc = filesink->file->_file;

 -ret = lseek (fileno(filesink->file), 0, SEEK_CUR);
 +ret = lseek (filesink->file->_file, 0, SEEK_CUR);

Can these changes be applied to UNIX systems? If not we could add something
like this:

#ifdef _MSC_VER
 filedesc = filesink->file->_file;
#else
 filedesc = fileno(filesink->file);
#endif


What I still do not understand is why this incompatibility exists if both GLib
and GStreamer are linked against msvcrt.dll ...


-- 
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