mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
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:
parent
dd1282f45a
commit
185614e387
2 changed files with 12 additions and 2 deletions
|
@ -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>
|
2008-02-20 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* gst/playback/gstplaysink.c: (find_property),
|
* gst/playback/gstplaysink.c: (find_property),
|
||||||
|
|
|
@ -448,6 +448,7 @@ static gboolean
|
||||||
gst_gnome_vfs_sink_handle_event (GstBaseSink * basesink, GstEvent * event)
|
gst_gnome_vfs_sink_handle_event (GstBaseSink * basesink, GstEvent * event)
|
||||||
{
|
{
|
||||||
GstGnomeVFSSink *sink;
|
GstGnomeVFSSink *sink;
|
||||||
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
sink = GST_GNOME_VFS_SINK (basesink);
|
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) {
|
if (res != GNOME_VFS_OK) {
|
||||||
GST_ERROR_OBJECT (sink, "Failed to seek to offset %"
|
GST_ERROR_OBJECT (sink, "Failed to seek to offset %"
|
||||||
G_GINT64_FORMAT ": %s", offset, gnome_vfs_result_to_string (res));
|
G_GINT64_FORMAT ": %s", offset, gnome_vfs_result_to_string (res));
|
||||||
|
ret = FALSE;
|
||||||
} else {
|
} else {
|
||||||
sink->current_pos = offset;
|
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_FLUSH_START:
|
||||||
case GST_EVENT_EOS:{
|
case GST_EVENT_EOS:{
|
||||||
/* how does Gnome-VFS flush? Do we need to flush? */
|
/* No need to flush with GnomeVfs */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue