diff options
author | Benjamin Otte <otte@gnome.org> | 2004-03-13 09:57:02 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2004-03-13 09:57:02 +0000 |
commit | 557f936625c74c73b6ed39e14f88772ba2bff122 (patch) | |
tree | a76a1c80f21244362b513fd34c4f7cfc5fd973c8 | |
parent | 578c7544fcef5580447bbbfb3c4d2e0a72a7faf4 (diff) | |
download | gstreamer-plugins-base-557f936625c74c73b6ed39e14f88772ba2bff122.tar.gz |
gst/sine/gstsinesrc.c: return taglist correctly from _get function, don't gst_pad_push it.
Original commit message from CVS:
* gst/sine/gstsinesrc.c: (gst_sinesrc_get):
return taglist correctly from _get function, don't gst_pad_push it.
(fixes #137042)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/sine/gstsinesrc.c | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2004-03-13 Benjamin Otte <otte@gnome.org> + + * gst/sine/gstsinesrc.c: (gst_sinesrc_get): + return taglist correctly from _get function, don't gst_pad_push it. + (fixes #137042) + 2004-03-13 Jan Schmidt <thaytan@mad.scientist.com> * ext/alsa/gstalsa.c: (gst_alsa_class_probe_devices): diff --git a/gst/sine/gstsinesrc.c b/gst/sine/gstsinesrc.c index e62dfc8fe..526c37628 100644 --- a/gst/sine/gstsinesrc.c +++ b/gst/sine/gstsinesrc.c @@ -344,14 +344,17 @@ gst_sinesrc_get (GstPad *pad) 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, "sine wave", NULL); - gst_element_found_tags_for_pad (GST_ELEMENT (src), pad, 0, taglist); + gst_element_found_tags (GST_ELEMENT (src), taglist); + event = gst_event_new_tag (taglist); src->tags_pushed = TRUE; + return GST_DATA (event); } tdiff = src->samples_per_buffer * GST_SECOND / src->samplerate; |