mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
speexenc: small taglist handling cleanup
Don't eventualy leak the list and instead assert (like in other elements).
This commit is contained in:
parent
e82e16480d
commit
0541c44add
1 changed files with 5 additions and 3 deletions
|
@ -852,12 +852,14 @@ gst_speex_enc_sinkevent (GstPad * pad, GstEvent * event)
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_TAG:
|
case GST_EVENT_TAG:
|
||||||
{
|
{
|
||||||
GstTagList *list;
|
|
||||||
|
|
||||||
gst_event_parse_tag (event, &list);
|
|
||||||
if (enc->tags) {
|
if (enc->tags) {
|
||||||
|
GstTagList *list;
|
||||||
|
|
||||||
|
gst_event_parse_tag (event, &list);
|
||||||
gst_tag_list_insert (enc->tags, list,
|
gst_tag_list_insert (enc->tags, list,
|
||||||
gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (enc)));
|
gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (enc)));
|
||||||
|
} else {
|
||||||
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
res = gst_pad_event_default (pad, event);
|
res = gst_pad_event_default (pad, event);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue