From: Wim Taymans Date: Wed, 6 Jun 2012 10:55:15 +0000 (+0200) Subject: update for tag event change X-Git-Tag: 1.19.3~511^2~6371 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2172bdb4bba7bcb5983a3a7cd7d1f53a44fc080;p=platform%2Fupstream%2Fgstreamer.git update for tag event change --- diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 3486575..5f10263 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2609,7 +2609,7 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain, gst_ogg_demux_send_event (ogg, event); tags = gst_tag_list_new (GST_TAG_CONTAINER_FORMAT, "Ogg", NULL); - gst_ogg_demux_send_event (ogg, gst_event_new_tag (tags)); + gst_ogg_demux_send_event (ogg, gst_event_new_tag ("GstDemuxer", tags)); } GST_DEBUG_OBJECT (ogg, "starting chain"); @@ -2625,7 +2625,7 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain, if (pad->map.taglist) { GST_DEBUG_OBJECT (ogg, "pushing tags"); gst_pad_push_event (GST_PAD_CAST (pad), - gst_event_new_tag (pad->map.taglist)); + gst_event_new_tag ("GstDemuxer", pad->map.taglist)); pad->map.taglist = NULL; } diff --git a/ext/ogg/gstogmparse.c b/ext/ogg/gstogmparse.c index b8bd212..0b6024a 100644 --- a/ext/ogg/gstogmparse.c +++ b/ext/ogg/gstogmparse.c @@ -659,7 +659,7 @@ gst_ogm_parse_stream_header (GstOgmParse * ogm, const guint8 * data, guint size) GstTagList *tags; tags = gst_tag_list_new (GST_TAG_SUBTITLE_CODEC, "Ogm", NULL); - gst_pad_push_event (ogm->srcpad, gst_event_new_tag (tags)); + gst_pad_push_event (ogm->srcpad, gst_event_new_tag ("GstParser", tags)); } } @@ -701,7 +701,7 @@ gst_ogm_parse_comment_packet (GstOgmParse * ogm, GstBuffer * buf) if (tags) { GST_DEBUG_OBJECT (ogm, "tags = %" GST_PTR_FORMAT, tags); - gst_pad_push_event (ogm->srcpad, gst_event_new_tag (tags)); + gst_pad_push_event (ogm->srcpad, gst_event_new_tag ("GstParser", tags)); } else { GST_DEBUG_OBJECT (ogm, "failed to extract tags from vorbis comment"); } diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 51927ea..4c4308d 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -201,7 +201,7 @@ gst_theora_dec_init (GstTheoraDec * dec) /* input is packetized, * but is not marked that way so data gets parsed and keyframes marked */ - gst_video_decoder_set_packetized (GST_VIDEO_DECODER(dec), FALSE); + gst_video_decoder_set_packetized (GST_VIDEO_DECODER (dec), FALSE); } static void @@ -501,7 +501,7 @@ theora_handle_type_packet (GstTheoraDec * dec) /* FIXME : */ if (dec->tags) { gst_pad_push_event (GST_VIDEO_DECODER (dec)->srcpad, - gst_event_new_tag (dec->tags)); + gst_event_new_tag ("GstDecoder", dec->tags)); dec->tags = NULL; } diff --git a/gst-libs/gst/audio/gstaudiocdsrc.c b/gst-libs/gst/audio/gstaudiocdsrc.c index 93b417b..c8f8b40 100644 --- a/gst-libs/gst/audio/gstaudiocdsrc.c +++ b/gst-libs/gst/audio/gstaudiocdsrc.c @@ -1651,7 +1651,8 @@ gst_audio_cd_src_create (GstPushSrc * pushsrc, GstBuffer ** buffer) gst_tag_list_merge (src->tags, src->priv->tracks[src->priv->cur_track].tags, GST_TAG_MERGE_REPLACE); GST_LOG_OBJECT (src, "announcing tags: %" GST_PTR_FORMAT, tags); - gst_pad_push_event (GST_BASE_SRC_PAD (src), gst_event_new_tag (tags)); + gst_pad_push_event (GST_BASE_SRC_PAD (src), gst_event_new_tag ("GstSrc", + tags)); src->priv->prev_track = src->priv->cur_track; gst_audio_cd_src_update_duration (src); diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index e036356..00f879b 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -952,7 +952,8 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf, if (gst_tag_list_is_empty (priv->taglist)) { gst_tag_list_free (priv->taglist); } else { - gst_audio_decoder_push_event (dec, gst_event_new_tag (priv->taglist)); + gst_audio_decoder_push_event (dec, gst_event_new_tag ("GstDecoder", + priv->taglist)); } priv->taglist = NULL; } diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index add902e..2e7ae07 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -632,7 +632,7 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf, caps); #endif GST_DEBUG_OBJECT (enc, "sending tags %" GST_PTR_FORMAT, tags); - gst_audio_encoder_push_event (enc, gst_event_new_tag (tags)); + gst_audio_encoder_push_event (enc, gst_event_new_tag ("GstEncoder", tags)); } /* remove corresponding samples from input */ @@ -1465,7 +1465,7 @@ gst_audio_encoder_sink_event_default (GstAudioEncoder * enc, GstEvent * event) gst_tag_list_remove_tag (tags, GST_TAG_MINIMUM_BITRATE); gst_tag_list_remove_tag (tags, GST_TAG_ENCODER); gst_tag_list_remove_tag (tags, GST_TAG_ENCODER_VERSION); - event = gst_event_new_tag (tags); + event = gst_event_new_tag ("GstEncoder", tags); GST_AUDIO_ENCODER_STREAM_LOCK (enc); enc->priv->pending_events = diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c index f28924f..daf3e7a 100644 --- a/gst-libs/gst/tag/gsttagdemux.c +++ b/gst-libs/gst/tag/gsttagdemux.c @@ -1522,7 +1522,7 @@ gst_tag_demux_send_tag_event (GstTagDemux * demux) gst_tag_list_copy (demux->priv->parsed_tags))); if (merged) { - GstEvent *event = gst_event_new_tag (merged); + GstEvent *event = gst_event_new_tag ("GstTagDemuxer", merged); GST_EVENT_TIMESTAMP (event) = 0; GST_DEBUG_OBJECT (demux, "Sending tag event on src pad"); diff --git a/gst-libs/gst/tag/gsttagmux.c b/gst-libs/gst/tag/gsttagmux.c index cf49707..e67fbe7 100644 --- a/gst-libs/gst/tag/gsttagmux.c +++ b/gst-libs/gst/tag/gsttagmux.c @@ -266,7 +266,7 @@ gst_tag_mux_render_start_tag (GstTagMux * mux) /* Send an event about the new tags to downstream elements */ /* gst_event_new_tag takes ownership of the list, so use a copy */ - event = gst_event_new_tag (gst_tag_list_copy (taglist)); + event = gst_event_new_tag ("GstTagMuxer", gst_tag_list_copy (taglist)); gst_pad_push_event (mux->priv->srcpad, event); GST_BUFFER_OFFSET (buffer) = 0; diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index ae9ca10..2c7cf98 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -1131,7 +1131,7 @@ gst_audio_test_src_fill (GstBaseSrc * basesrc, guint64 offset, eclass = GST_ELEMENT_CLASS (parent_class); if (eclass->send_event) eclass->send_event (GST_ELEMENT_CAST (basesrc), - gst_event_new_tag (taglist)); + gst_event_new_tag ("GstSrc", taglist)); else gst_tag_list_free (taglist); src->tags_pushed = TRUE; diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 8ccaeb1..338e104 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -3059,7 +3059,7 @@ no_more_pads_cb (GstElement * decodebin, GstSourceGroup * group) gst_structure_set (s, "suburi", G_TYPE_STRING, group->suburi, NULL); msg = gst_message_new_element (GST_OBJECT_CAST (playbin), s); seqnum = gst_message_get_seqnum (msg); - event = gst_event_new_sink_message (msg); + event = gst_event_new_sink_message ("GstPlaybin", msg); g_mutex_lock (&group->stream_changed_pending_lock); group->stream_changed_pending = g_list_prepend (group->stream_changed_pending, diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c index bea39b6..0749bd2 100644 --- a/gst/subparse/gstssaparse.c +++ b/gst/subparse/gstssaparse.c @@ -341,7 +341,7 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * buf) tags = gst_tag_list_new_empty (); gst_tag_list_add (tags, GST_TAG_MERGE_APPEND, GST_TAG_SUBTITLE_CODEC, "SubStation Alpha", NULL); - gst_pad_push_event (parse->srcpad, gst_event_new_tag (tags)); + gst_pad_push_event (parse->srcpad, gst_event_new_tag ("GstParser", tags)); parse->send_tags = FALSE; } diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index fa98efd..3d6d31b 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -1468,7 +1468,7 @@ handle_buffer (GstSubParse * self, GstBuffer * buf) tags = gst_tag_list_new (GST_TAG_SUBTITLE_CODEC, self->subtitle_codec, NULL); - gst_pad_push_event (self->srcpad, gst_event_new_tag (tags)); + gst_pad_push_event (self->srcpad, gst_event_new_tag ("GstParser", tags)); } }