[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
Fri Jun 26 07:49:12 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

LRN changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lrn1986 at gmail.com




------- Comment #2 from LRN  2009-06-26 14:49 UTC -------
I've tried to debug it in MSVS2008 Express using the .pdb files attached, but
Visual Studio says that "The symbol file libgstcoreelements.pdb does not match
the module" (the module is
C:\gstreamer\lib\gstreamer-0.10\libgstcoreelements.dll)

Also, running the same pipeline with --gst-debug-level=5 shows that filesink
tries to seek to offset 0, which should not fail.

Because i can't debug it, i can only suggest a few things you can do to find
the source of the problem:
Change
#elif defined (G_OS_UNIX) || defined (G_OS_WIN32)
  if (lseek (fileno (filesink->file), (off_t) new_offset,
          SEEK_SET) == (off_t) - 1)
    goto seek_failed;
#else
to
#elif defined (G_OS_UNIX) || defined (G_OS_WIN32)
  {
    int filedesc = 0;
    __int64 lseekresult = 0;
    filedesc = fileno (filesink->file);
    GST_DEBUG_OBJECT (filesink, "File descriptor is %d", filedesc);
    lseekresult = lseek (filedesc, (off_t) new_offset, SEEK_SET);
    GST_DEBUG_OBJECT (filesink, "Seek result is %" G_GINT64_FORMAT,
lseekresult);
    if (lseekresult == (off_t) - 1)
      goto seek_failed;
  }
#else
And rebuild it. Then launch gst-launch-0.10 --gst-debug-level=5 videotestsrc !
filesink location=test
and see what happens.


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