summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-30 02:11:14 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-07-01 10:45:32 +0100
commit048b0145a8c704d070e334ca1c6c7e839aef118d (patch)
tree7987a74679e35aeb604e84fcb9048a6f2c72628d
parent793e25cfc7fc655a9ea8e2e624e856961cc486e8 (diff)
ffmpegdemux: post tags after the initial newsegment event
-rw-r--r--ext/ffmpeg/gstffmpegdemux.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c
index 7b2e8c0..c5feb3f 100644
--- a/ext/ffmpeg/gstffmpegdemux.c
+++ b/ext/ffmpeg/gstffmpegdemux.c
@@ -1162,13 +1162,6 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
gst_element_no_more_pads (GST_ELEMENT (demux));
- /* grab the tags */
- tags = gst_ffmpegdemux_read_tags (demux);
- if (tags) {
- gst_element_post_message (GST_ELEMENT (demux),
- gst_message_new_tag (GST_OBJECT (demux), tags));
- }
-
/* transform some useful info to GstClockTime and remember */
demux->start_time = gst_util_uint64_scale_int (demux->context->start_time,
GST_SECOND, AV_TIME_BASE);
@@ -1202,6 +1195,13 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
demux->segment.start, demux->segment.stop, demux->segment.time));
}
+ /* grab the tags */
+ tags = gst_ffmpegdemux_read_tags (demux);
+ if (tags) {
+ gst_element_post_message (GST_ELEMENT (demux),
+ gst_message_new_tag (GST_OBJECT (demux), tags));
+ }
+
return TRUE;
/* ERRORS */