diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-18 23:38:30 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-22 10:49:02 +0100 |
commit | 6c6e96becde568e95e17b10841cc5a60137998b6 (patch) | |
tree | bb50e26287aa4f5f2e0e35c7a41ae80d51524a0a /gst/multipart | |
parent | 323517f5278e55023e1c10e59315e890c477b2eb (diff) |
multipartdemux: post container-format tag
Diffstat (limited to 'gst/multipart')
-rw-r--r-- | gst/multipart/multipartdemux.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gst/multipart/multipartdemux.c b/gst/multipart/multipartdemux.c index f701310cf..1fb62e712 100644 --- a/gst/multipart/multipartdemux.c +++ b/gst/multipart/multipartdemux.c @@ -558,12 +558,16 @@ gst_multipart_demux_chain (GstPad * pad, GstBuffer * buf) gst_buffer_set_caps (outbuf, GST_PAD_CAPS (srcpad->pad)); if (created) { - GstEvent *event; + GstTagList *tags; /* Push new segment, first buffer has 0 timestamp */ - event = - gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0); - gst_pad_push_event (srcpad->pad, event); + gst_pad_push_event (srcpad->pad, + gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0)); + + tags = + gst_tag_list_new_full (GST_TAG_CONTAINER_FORMAT, "Multipart", NULL); + gst_pad_push_event (srcpad->pad, gst_event_new_tag (tags)); + GST_BUFFER_TIMESTAMP (outbuf) = 0; } else { GST_BUFFER_TIMESTAMP (outbuf) = timestamp; |