ffmpegdemux: use gst_element_found_tags() for global tags
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 28 Jul 2009 22:40:31 +0000 (23:40 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 28 Jul 2009 22:58:02 +0000 (23:58 +0100)
So we get a message on the bus *and* tag events pushed downstream.

ext/ffmpeg/gstffmpegdemux.c

index 6912de3..0b9fa19 100644 (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 */