ext/gio/gstgiobasesrc.c: If seeking to a new position succeeds don't simply return from create() without creating a b...

Original commit message from CVS:
Patch by: Milosz Derezynski <internalerror at gmail dot com>
* ext/gio/gstgiobasesrc.c: (gst_gio_base_src_create):
If seeking to a new position succeeds don't simply return from
create() without creating a buffer. Do this only in the case
seeking to the new position fails. Fixes bug #523054.
This commit is contained in:
Milosz Derezynski 2008-03-17 22:06:56 +00:00 committed by Sebastian Dröge
parent a0de863603
commit e97290739d
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2008-03-17 Sebastian Dröge <slomo@circular-chaos.org>
Patch by: Milosz Derezynski <internalerror at gmail dot com>
* ext/gio/gstgiobasesrc.c: (gst_gio_base_src_create):
If seeking to a new position succeeds don't simply return from
create() without creating a buffer. Do this only in the case
seeking to the new position fails. Fixes bug #523054.
2008-03-17 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/video/video.c: (gst_video_format_parse_caps),

View file

@ -309,7 +309,8 @@ gst_gio_base_src_create (GstBaseSrc * base_src, guint64 offset, guint size,
if (ret == GST_FLOW_OK)
src->position = offset;
return ret;
else
return ret;
}
buf = gst_buffer_new_and_alloc (size);