summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2004-03-13 09:57:02 +0000
committerBenjamin Otte <otte@gnome.org>2004-03-13 09:57:02 +0000
commit557f936625c74c73b6ed39e14f88772ba2bff122 (patch)
treea76a1c80f21244362b513fd34c4f7cfc5fd973c8
parent578c7544fcef5580447bbbfb3c4d2e0a72a7faf4 (diff)
downloadgstreamer-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--ChangeLog6
-rw-r--r--gst/sine/gstsinesrc.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 46353887c..3d9e2481f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;