audiobasesrc: init variable
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 20 Dec 2012 15:41:48 +0000 (16:41 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 20 Dec 2012 15:47:56 +0000 (16:47 +0100)
We need to initialize this variable because we can't be sure that the subclass
will set it.

gst-libs/gst/audio/gstaudiobasesrc.c

index 820e0f9..66bade4 100644 (file)
@@ -815,7 +815,7 @@ gst_audio_base_src_create (GstBaseSrc * bsrc, guint64 offset, guint length,
   ptr = info.data;
   first = TRUE;
   do {
-    GstClockTime tmp_ts;
+    GstClockTime tmp_ts = GST_CLOCK_TIME_NONE;
 
     read =
         gst_audio_ring_buffer_read (ringbuffer, sample, ptr, samples, &tmp_ts);