[gstreamer-bugs] [Bug 309117] [filesink] non-fatal out of disk space handling

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Jan 18 19:00:45 PST 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=309117

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #10 from David Fries  2009-01-19 03:00 UTC -------
Created an attachment (id=126735)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=126735&action=view)
Warning before disk is full.

The other patches fall into warn when the disk is full and give the application
a chance to do something, or notify when X bytes have been written.  In my case
I need to know before the disk is full, so that an avi file can be properly
closed, or it isn't playable on many players.

The problem with either of the above solutions is, it presumes you can do
something about the disk being full, nope disk full is too late, or that
nothing else is writing to the disk.  How about looking at the remaining
storage space?

Here is a patch adds a reserved-space propertly to, "Send no space left warning
when fewer than reserved-space bytes remain".  It does nothing unless it is
non-zero.  To avoid checking the available disk space after every write it will
only check again when half of the available space has been written.

In my case the application will receive the warning, clear out the buffers, and
shutdown the pipeline all before the storage space actually runs empty.


-- 
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=309117.




More information about the Gstreamer-bugs mailing list