diff options
author | Andy Wingo <wingo@pobox.com> | 2005-05-11 03:20:15 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-05-11 03:20:15 +0000 |
commit | 3aacd7982ec6601c6f03f703dd77d2c797be4bf5 (patch) | |
tree | 7f9cd05ff7276c4398206c97b6e3502709527cf1 /ext | |
parent | a214f5bf7b1216246dfaaab888c9a4197801b9a0 (diff) |
ext/vorbis/vorbisdec.c (vorbis_handle_comment_packet): Post a message to the bus with the tags. Still not sent downst...
Original commit message from CVS:
* ext/vorbis/vorbisdec.c (vorbis_handle_comment_packet): Post a
message to the bus with the tags. Still not sent downstream tho.
* gst/playback/gstdecodebin.c (remove_element_chain): Unref after
get_parent.
(remove_element_chain): Use OBJECT_PARENT instead of get_parent to
avoid refcounting hassles.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/vorbis/vorbisdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/vorbis/vorbisdec.c b/ext/vorbis/vorbisdec.c index f1e667fca..3625155c2 100644 --- a/ext/vorbis/vorbisdec.c +++ b/ext/vorbis/vorbisdec.c @@ -442,6 +442,7 @@ static GstFlowReturn vorbis_handle_comment_packet (GstVorbisDec * vd, ogg_packet * packet) { gchar *encoder = NULL; + GstMessage *message; GstTagList *list; GstBuffer *buf; @@ -479,7 +480,8 @@ vorbis_handle_comment_packet (GstVorbisDec * vd, ogg_packet * packet) gst_tag_list_add (list, GST_TAG_MERGE_REPLACE, GST_TAG_MINIMUM_BITRATE, (guint) vd->vi.bitrate_lower, NULL); - //gst_element_found_tags_for_pad (GST_ELEMENT (vd), vd->srcpad, 0, list); + message = gst_message_new_tag ((GstObject *) vd, list); + gst_element_post_message (GST_ELEMENT (vd), message); return GST_FLOW_OK; } |