From 68a8e52d3b037302afa6fb3da5e93452644be941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 4 Mar 2006 14:35:10 +0000 Subject: [PATCH] configure.ac: Bump requirements to GStreamer CVS for the new error enum. Original commit message from CVS: * configure.ac: Bump requirements to GStreamer CVS for the new error enum. * ext/gnomevfs/gstgnomevfssink.c: (gst_gnome_vfs_sink_render): Emit new GST_RESOURCE_ERROR_NO_SPACE_LEFT when there's no space left on the device (fixes #333352). --- ChangeLog | 9 +++++++++ configure.ac | 2 +- ext/gnomevfs/gstgnomevfssink.c | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc879aa52e..c5efdd072e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-03-04 Tim-Philipp Müller + + * configure.ac: + Bump requirements to GStreamer CVS for the new error enum. + + * ext/gnomevfs/gstgnomevfssink.c: (gst_gnome_vfs_sink_render): + Emit new GST_RESOURCE_ERROR_NO_SPACE_LEFT when there's no + space left on the device (fixes #333352). + 2006-03-04 Sebastien Moutte * win32/vs6: diff --git a/configure.ac b/configure.ac index 0cd03251ee..7bfeb1b299 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ AS_LIBTOOL_TAGS AM_PROG_LIBTOOL dnl *** required versions of GStreamer stuff *** -GST_REQ=0.10.2.2 +GST_REQ=0.10.3.1 dnl *** autotools stuff **** diff --git a/ext/gnomevfs/gstgnomevfssink.c b/ext/gnomevfs/gstgnomevfssink.c index 2d1b024cc5..9e2bb55b67 100644 --- a/ext/gnomevfs/gstgnomevfssink.c +++ b/ext/gnomevfs/gstgnomevfssink.c @@ -552,8 +552,11 @@ gst_gnome_vfs_sink_render (GstBaseSink * basesink, GstBuffer * buf) case GNOME_VFS_ERROR_NO_SPACE:{ /* TODO: emit signal/send msg on out-of-diskspace and * handle this gracefully (see open bug) (tpm) */ + GST_ELEMENT_ERROR (sink, RESOURCE, NO_SPACE_LEFT, (NULL), + ("bufsize=%u, written=%u", GST_BUFFER_SIZE (buf), (guint) written)); + ret = GST_FLOW_ERROR; + break; } - /* fall-through */ default:{ gchar *filename = gnome_vfs_uri_to_string (sink->uri, GNOME_VFS_URI_HIDE_PASSWORD);