projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82e164
)
speexenc: small taglist handling cleanup
author
Stefan Kost
<ensonic@users.sf.net>
Thu, 3 Sep 2009 11:13:43 +0000
(14:13 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Thu, 3 Sep 2009 11:48:14 +0000
(14:48 +0300)
Don't eventualy leak the list and instead assert (like in other elements).
ext/speex/gstspeexenc.c
patch
|
blob
|
history
diff --git
a/ext/speex/gstspeexenc.c
b/ext/speex/gstspeexenc.c
index
d873ed0
..
17e1703
100644
(file)
--- a/
ext/speex/gstspeexenc.c
+++ b/
ext/speex/gstspeexenc.c
@@
-852,12
+852,14
@@
gst_speex_enc_sinkevent (GstPad * pad, GstEvent * event)
break;
case GST_EVENT_TAG:
{
- GstTagList *list;
-
- gst_event_parse_tag (event, &list);
if (enc->tags) {
+ GstTagList *list;
+
+ gst_event_parse_tag (event, &list);
gst_tag_list_insert (enc->tags, list,
gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (enc)));
+ } else {
+ g_assert_not_reached ();
}
res = gst_pad_event_default (pad, event);
break;