gst/sine/gstsinesrc.c: return taglist correctly from _get function, don't gst_pad_pus...
authorBenjamin Otte <otte@gnome.org>
Sat, 13 Mar 2004 09:57:02 +0000 (09:57 +0000)
committerBenjamin Otte <otte@gnome.org>
Sat, 13 Mar 2004 09:57:02 +0000 (09:57 +0000)
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)

ChangeLog
gst/sine/gstsinesrc.c

index 4635388..3d9e248 100644 (file)
--- 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):
 
index e62dfc8..526c376 100644 (file)
@@ -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;