ext/gnomevfs/gstgnomevfssink.c: Return FALSE when seeking for a new segment fails instead of silently ignoring the fa...

Original commit message from CVS:
* ext/gnomevfs/gstgnomevfssink.c:
(gst_gnome_vfs_sink_handle_event):
Return FALSE when seeking for a new segment fails instead
of silently ignoring the failure and appending every buffer
that comes for the new segment.
This commit is contained in:
Sebastian Dröge 2008-02-20 15:37:36 +00:00
parent dd1282f45a
commit 185614e387
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2008-02-20 Sebastian Dröge <slomo@circular-chaos.org>
* ext/gnomevfs/gstgnomevfssink.c:
(gst_gnome_vfs_sink_handle_event):
Return FALSE when seeking for a new segment fails instead
of silently ignoring the failure and appending every buffer
that comes for the new segment.
2008-02-20 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/playback/gstplaysink.c: (find_property),

View file

@ -448,6 +448,7 @@ static gboolean
gst_gnome_vfs_sink_handle_event (GstBaseSink * basesink, GstEvent * event)
{
GstGnomeVFSSink *sink;
gboolean ret = TRUE;
sink = GST_GNOME_VFS_SINK (basesink);
@ -474,6 +475,7 @@ gst_gnome_vfs_sink_handle_event (GstBaseSink * basesink, GstEvent * event)
if (res != GNOME_VFS_OK) {
GST_ERROR_OBJECT (sink, "Failed to seek to offset %"
G_GINT64_FORMAT ": %s", offset, gnome_vfs_result_to_string (res));
ret = FALSE;
} else {
sink->current_pos = offset;
}
@ -483,14 +485,14 @@ gst_gnome_vfs_sink_handle_event (GstBaseSink * basesink, GstEvent * event)
case GST_EVENT_FLUSH_START:
case GST_EVENT_EOS:{
/* how does Gnome-VFS flush? Do we need to flush? */
/* No need to flush with GnomeVfs */
break;
}
default:
break;
}
return TRUE;
return ret;
}
static gboolean