From 2833bb73cd13a266d9f184f5ed3a721c744e9d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 3 Jul 2012 17:25:21 +0200 Subject: [PATCH] basesink: Post TOC messages on the bus in the sinks, similar to tags --- libs/gst/base/gstbasesink.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index ece8a8dfc7..f83ee7243e 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -2960,6 +2960,19 @@ gst_base_sink_default_event (GstBaseSink * basesink, GstEvent * event) gst_tag_list_copy (taglist))); break; } + case GST_EVENT_TOC: + { + GstToc *toc; + gboolean updated; + + gst_event_parse_toc (event, &toc, &updated); + + gst_element_post_message (GST_ELEMENT_CAST (basesink), + gst_message_new_toc (GST_OBJECT_CAST (basesink), toc, updated)); + + gst_toc_unref (toc); + break; + } case GST_EVENT_SINK_MESSAGE: { GstMessage *msg = NULL;