mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
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)
This commit is contained in:
parent
578c7544fc
commit
557f936625
2 changed files with 10 additions and 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):
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue