ffmpegdemux: use gst_element_found_tags() for global tags

So we get a message on the bus *and* tag events pushed downstream.
This commit is contained in:
Tim-Philipp Müller 2009-07-28 23:40:31 +01:00
parent d917f59a84
commit 508ab716b0

View file

@ -1218,8 +1218,7 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
tags = gst_ffmpegdemux_read_tags (demux);
if (tags) {
GST_INFO_OBJECT (demux, "global tags: %" GST_PTR_FORMAT, tags);
gst_element_post_message (GST_ELEMENT (demux),
gst_message_new_tag (GST_OBJECT (demux), tags));
gst_element_found_tags (GST_ELEMENT (demux), tags);
}
/* now handle the stream tags */