From 196b38d4ef73d937de02f3a020c16afbd81f13c8 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 12 Jul 2009 10:07:34 +0200 Subject: [PATCH] audiotestsrc: Make sure tags are properly serialized. Fixes #588746 We do this by letting the basesrc base class handle the tags. --- gst/audiotestsrc/gstaudiotestsrc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index 42963b6dad..3d48557d9d 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -1000,15 +1000,14 @@ gst_audio_test_src_create (GstBaseSrc * basesrc, guint64 offset, /* example for tagging generated data */ if (!src->tags_pushed) { GstTagList *taglist; - GstEvent *event; taglist = gst_tag_list_new (); gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_DESCRIPTION, "audiotest wave", NULL); - event = gst_event_new_tag (taglist); - gst_pad_push_event (basesrc->srcpad, event); + gst_element_send_event ((GstElement *) basesrc, + gst_event_new_tag (taglist)); src->tags_pushed = TRUE; }