alsamidisrc: unref buffer_list before early return

This commit is contained in:
Mathieu Duponchelle 2018-04-12 22:23:50 +02:00
parent 225651e6c5
commit 32ca1701b7

View file

@ -459,6 +459,7 @@ poll:
if (ret <= 0) {
if (ret < 0 && errno == EBUSY) {
GST_INFO_OBJECT (alsamidisrc, "flushing");
gst_buffer_list_unref (buffer_list);
return GST_FLOW_FLUSHING;
}
GST_ERROR_OBJECT (alsamidisrc, "ERROR in poll: %s", strerror (errno));