gst/asfdemux/gstasfdemux.c: signal the new tags before giving up the reference

Original commit message from CVS:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_comment):
signal the new tags before giving up the reference
This commit is contained in:
Benjamin Otte 2004-05-17 17:59:45 +00:00
parent 130ee665bf
commit 8f3d552725
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-05-17 Benjamin Otte <otte@gnome.org>
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_comment):
signal the new tags before giving up the reference
2004-05-17 Benjamin Otte <in7y118@public.uni-hamburg.de> 2004-05-17 Benjamin Otte <in7y118@public.uni-hamburg.de>
* ext/shout2/gstshout2.c: * ext/shout2/gstshout2.c:

View file

@ -569,9 +569,12 @@ gst_asf_demux_process_comment (GstASFDemux * asf_demux, guint64 * obj_size)
if (have_tags) { if (have_tags) {
GstElement *element = GST_ELEMENT (asf_demux); GstElement *element = GST_ELEMENT (asf_demux);
GstEvent *event = gst_event_new_tag (taglist); GstEvent *event;
const GList *padlist; const GList *padlist;
gst_element_found_tags (element, taglist);
event = gst_event_new_tag (taglist);
for (padlist = gst_element_get_pad_list (element); for (padlist = gst_element_get_pad_list (element);
padlist != NULL; padlist = padlist->next) { padlist != NULL; padlist = padlist->next) {
if (GST_PAD_IS_SRC (padlist->data) && GST_PAD_IS_USABLE (padlist->data)) { if (GST_PAD_IS_SRC (padlist->data) && GST_PAD_IS_USABLE (padlist->data)) {
@ -580,8 +583,6 @@ gst_asf_demux_process_comment (GstASFDemux * asf_demux, guint64 * obj_size)
} }
} }
gst_element_found_tags (element, taglist);
gst_event_unref (event); gst_event_unref (event);
} else { } else {
gst_tag_list_free (taglist); gst_tag_list_free (taglist);