ext/gio/gstgiobasesrc.c: If seeking to a new position succeeds don't simply return...
authorMilosz Derezynski <internalerror@gmail.com>
Mon, 17 Mar 2008 22:06:56 +0000 (22:06 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 17 Mar 2008 22:06:56 +0000 (22:06 +0000)
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.

ChangeLog
ext/gio/gstgiobasesrc.c

index 022567f..e8e8650 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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),
index ff63554..777d7de 100644 (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);