mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
dshowaudiosrc: do not remove a range of length 0
This commit is contained in:
parent
0efde4cb70
commit
4d926e3b0d
1 changed files with 3 additions and 1 deletions
|
@ -765,7 +765,9 @@ gst_dshowaudiosrc_reset (GstAudioSrc * asrc)
|
|||
GstDshowAudioSrc *src = GST_DSHOWAUDIOSRC (asrc);
|
||||
|
||||
g_mutex_lock (src->gbarray_lock);
|
||||
g_byte_array_remove_range (src->gbarray, 0, src->gbarray->len);
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue