audiobasesrc: init variable

We need to initialize this variable because we can't be sure that the subclass
will set it.
This commit is contained in:
Wim Taymans 2012-12-20 16:41:48 +01:00
parent dc9f19cbba
commit 5e04fcd2ef

View file

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