wavenc: Fix taglist ref handling that made the unit test fail
This commit is contained in:
parent
28abae4eef
commit
ea75b890dc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user