summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSergey Scobich <sergey.scobich@gmail.com>2006-10-23 14:51:30 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-10-23 14:51:30 +0000
commit5861382c2f0bc8fb0311c0e4e9f7ccba47d52d21 (patch)
treea607722531248840afc1c2b26391ac7cb43aff19 /libs
parentdc159be1b22eff467247dd0b9d84650f276e511b (diff)
libs/gst/base/gstbasesrc.c: Make sure size is always initialized. Fixes #364388.
Original commit message from CVS: Patch by: Sergey Scobich <sergey dot scobich at gmail dot com> * 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.
Diffstat (limited to 'libs')
-rw-r--r--libs/gst/base/gstbasesrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c
index 933d3d9cb..8e464473a 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,