Commit 557f9366 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

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)
parent 578c7544
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):
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment