From 8172d8b6839442efdad438bbf203aa1af24bfaa9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Jun 2012 13:03:04 +0200 Subject: [PATCH] update for tag event change --- ext/sidplay/gstsiddec.cc | 2 +- gst/asfdemux/gstasfdemux.c | 4 ++-- gst/dvdlpcmdec/gstdvdlpcmdec.c | 3 ++- gst/realmedia/rademux.c | 2 +- gst/realmedia/rmdemux.c | 5 +++-- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ext/sidplay/gstsiddec.cc b/ext/sidplay/gstsiddec.cc index 3c47565..17b611b 100644 --- a/ext/sidplay/gstsiddec.cc +++ b/ext/sidplay/gstsiddec.cc @@ -272,7 +272,7 @@ update_tags (GstSidDec * siddec) gst_tag_list_add (list, GST_TAG_MERGE_REPLACE, GST_TAG_COPYRIGHT, info.copyrightString, (void *) NULL); } - gst_pad_push_event (siddec->srcpad, gst_event_new_tag (list)); + gst_pad_push_event (siddec->srcpad, gst_event_new_tag ("GstDecoder", list)); } } diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 77e9560..51c421e 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -1439,7 +1439,7 @@ gst_asf_demux_push_complete_payloads (GstASFDemux * demux, gboolean force) GST_DEBUG_OBJECT (demux, "global tags: %" GST_PTR_FORMAT, demux->taglist); gst_asf_demux_send_event_unlocked (demux, - gst_event_new_tag (demux->taglist)); + gst_event_new_tag ("GstDemuxer", demux->taglist)); demux->taglist = NULL; demux->need_newsegment = FALSE; @@ -1450,7 +1450,7 @@ gst_asf_demux_push_complete_payloads (GstASFDemux * demux, gboolean force) if (G_UNLIKELY (stream->pending_tags)) { GST_LOG_OBJECT (stream->pad, "%" GST_PTR_FORMAT, stream->pending_tags); gst_pad_push_event (stream->pad, - gst_event_new_tag (stream->pending_tags)); + gst_event_new_tag ("GstDemuxer", stream->pending_tags)); stream->pending_tags = NULL; } diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.c b/gst/dvdlpcmdec/gstdvdlpcmdec.c index b46d512..f97a475 100644 --- a/gst/dvdlpcmdec/gstdvdlpcmdec.c +++ b/gst/dvdlpcmdec/gstdvdlpcmdec.c @@ -209,7 +209,8 @@ gst_dvdlpcmdec_send_tags (GstDvdLpcmDec * dvdlpcmdec) taglist = gst_tag_list_new (GST_TAG_AUDIO_CODEC, "LPCM Audio", GST_TAG_BITRATE, bitrate, NULL); - gst_pad_push_event (dvdlpcmdec->srcpad, gst_event_new_tag (taglist)); + gst_pad_push_event (dvdlpcmdec->srcpad, gst_event_new_tag ("GstDecoder", + taglist)); } static gboolean diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c index fb13309..0260c58 100644 --- a/gst/realmedia/rademux.c +++ b/gst/realmedia/rademux.c @@ -532,7 +532,7 @@ gst_real_audio_demux_parse_data (GstRealAudioDemux * demux) if (demux->pending_tags) { gst_pad_push_event (demux->srcpad, - gst_event_new_tag (demux->pending_tags)); + gst_event_new_tag ("GstDemuxer", demux->pending_tags)); demux->pending_tags = NULL; } diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index b57318d..e2ed8ac 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -2619,14 +2619,15 @@ gst_rmdemux_parse_packet (GstRMDemux * rmdemux, GstBuffer * in, guint16 version) if (rmdemux->pending_tags != NULL) { gst_rmdemux_send_event (rmdemux, - gst_event_new_tag (rmdemux->pending_tags)); + gst_event_new_tag ("GstDemuxer", rmdemux->pending_tags)); rmdemux->pending_tags = NULL; } } if (stream->pending_tags != NULL) { GST_LOG_OBJECT (stream->pad, "tags %" GST_PTR_FORMAT, stream->pending_tags); - gst_pad_push_event (stream->pad, gst_event_new_tag (stream->pending_tags)); + gst_pad_push_event (stream->pad, gst_event_new_tag ("GstDemuxer", + stream->pending_tags)); stream->pending_tags = NULL; } -- 2.7.4