update for tag event change

This commit is contained in:
Wim Taymans 2012-06-06 13:03:04 +02:00
parent 6e8b23ea35
commit 8172d8b683
5 changed files with 9 additions and 7 deletions

View file

@ -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));
}
}

View file

@ -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;
}

View file

@ -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

View file

@ -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;
}

View file

@ -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;
}