GNOME Bugzilla – Bug 364388
size variable is not always initialized in gst_base_src_start()
Last modified: 2006-10-23 14:51:36 UTC
Hi, it seems that in gstbasesrc.c in gst_base_src_start() the variable size is not always initialized and used later. It happends when basesrc->segment.format != GST_FORMAT_BYTES for ex GST_FORMAT_TIME in my case. later size is used here: /* run typefind if we are random_access and the typefinding is enabled. */ if (basesrc->random_access && basesrc->data.ABI.typefind && size != -1) { may be it is better to initialize size with -1 from the start.
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.