From 5861382c2f0bc8fb0311c0e4e9f7ccba47d52d21 Mon Sep 17 00:00:00 2001 From: Sergey Scobich Date: Mon, 23 Oct 2006 14:51:30 +0000 Subject: [PATCH] libs/gst/base/gstbasesrc.c: Make sure size is always initialized. Fixes #364388. Original commit message from CVS: Patch by: Sergey Scobich * libs/gst/base/gstbasesrc.c: (gst_base_src_wait_playing), (gst_base_src_start), (gst_base_src_activate_push): Make sure size is always initialized. Fixes #364388. --- ChangeLog | 8 ++++++++ common | 2 +- libs/gst/base/gstbasesrc.c | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d72764a..62261ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-10-23 Wim Taymans + + Patch by: Sergey Scobich + + * libs/gst/base/gstbasesrc.c: (gst_base_src_wait_playing), + (gst_base_src_start), (gst_base_src_activate_push): + Make sure size is always initialized. Fixes #364388. + 2006-10-20 Stefan Kost * docs/random/ensonic/distributed.txt: diff --git a/common b/common index efcacf2..ee0bb43 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit efcacf2625da231fbee99b68e0f5db6816cf6fad +Subproject commit ee0bb43e2b66781d04078e2210404da48f6c68f0 diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 933d3d9..8e46447 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -1781,6 +1781,8 @@ gst_base_src_start (GstBaseSrc * basesrc) /* only update the size when operating in bytes, subclass is supposed * to set duration in the start method for other formats */ gst_segment_set_duration (&basesrc->segment, GST_FORMAT_BYTES, size); + } else { + size = -1; } GST_DEBUG_OBJECT (basesrc, -- 2.7.4