bugfix: don't unref event twice

Original commit message from CVS:
bugfix: don't unref event twice
This commit is contained in:
Benjamin Otte 2003-03-27 03:16:31 +00:00
parent b5a22d8630
commit 2b473441ca

View file

@ -1168,7 +1168,6 @@ sink_restart:
pad->buf = gst_pad_pull (pad->pad);
if (GST_IS_EVENT (pad->buf)) {
gboolean cont = gst_alsa_sink_check_event (this, i, GST_EVENT (pad->buf));
gst_data_unref (GST_DATA (pad->buf));
pad->buf = NULL;
if (cont)
continue;