dshowaudiosrc: do not remove a range of length 0

This commit is contained in:
Julien Isorce 2009-07-22 12:34:36 +02:00
parent 0efde4cb70
commit 4d926e3b0d

View file

@ -765,6 +765,8 @@ gst_dshowaudiosrc_reset (GstAudioSrc * asrc)
GstDshowAudioSrc *src = GST_DSHOWAUDIOSRC (asrc);
g_mutex_lock (src->gbarray_lock);
GST_DEBUG ("byte array size= %d", src->gbarray->len);
if (src->gbarray->len > 0)
g_byte_array_remove_range (src->gbarray, 0, src->gbarray->len);
g_mutex_unlock (src->gbarray_lock);
}