From ea75b890dccd8e4dbdc62ecbf73ff38faacafe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 5 Jun 2013 15:50:04 +0200 Subject: [PATCH] wavenc: Fix taglist ref handling that made the unit test fail --- gst/wavenc/gstwavenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/wavenc/gstwavenc.c b/gst/wavenc/gstwavenc.c index 5208fbbb83..6d64f1e442 100644 --- a/gst/wavenc/gstwavenc.c +++ b/gst/wavenc/gstwavenc.c @@ -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);