wavenc: Fix taglist ref handling that made the unit test fail

This commit is contained in:
Sebastian Dröge 2013-06-05 15:50:04 +02:00
parent 28abae4eef
commit ea75b890dc

View file

@ -835,9 +835,7 @@ gst_wavenc_event (GstPad * pad, GstObject * parent, GstEvent * event)
if (wavenc->tags != tags) {
if (wavenc->tags)
gst_tag_list_unref (wavenc->tags);
wavenc->tags = tags;
} else {
gst_toc_unref (tags);
wavenc->tags = gst_tag_list_ref (tags);
}
}
res = gst_pad_event_default (pad, parent, event);