From b98ec32380a4ebfd6bc11ca087ab1fbb7dfc30a5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Jun 2012 13:02:40 +0200 Subject: [PATCH] update for tag event change --- ext/modplug/gstmodplug.cc | 2 +- ext/schroedinger/gstschrodec.c | 2 +- ext/vp8/gstvp8dec.c | 2 +- gst/camerabin2/gstcamerabin2.c | 4 ++-- gst/mpegtsdemux/mpegtsparse.c | 3 ++- gst/mpegtsdemux/tsdemux.c | 3 ++- gst/videoparsers/gstmpegvideoparse.c | 2 +- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ext/modplug/gstmodplug.cc b/ext/modplug/gstmodplug.cc index 2016832a02..645f4fd139 100644 --- a/ext/modplug/gstmodplug.cc +++ b/ext/modplug/gstmodplug.cc @@ -706,7 +706,7 @@ gst_modplug_loop (GstModPlug * modplug) gst_tag_list_add (tags, GST_TAG_MERGE_APPEND, GST_TAG_COMMENT, comment, NULL); } - gst_pad_push_event (modplug->srcpad, gst_event_new_tag (tags)); + gst_pad_push_event (modplug->srcpad, gst_event_new_tag ("GstDecoder", tags)); } else { /* not fully loaded yet */ return; diff --git a/ext/schroedinger/gstschrodec.c b/ext/schroedinger/gstschrodec.c index 1ebe47b4ac..475a7887d2 100644 --- a/ext/schroedinger/gstschrodec.c +++ b/ext/schroedinger/gstschrodec.c @@ -419,7 +419,7 @@ gst_schrodec_send_tags (GstSchroDec * schro_dec) GST_TAG_VIDEO_CODEC, "Dirac", NULL); gst_pad_push_event (GST_VIDEO_DECODER_SRC_PAD (schro_dec), - gst_event_new_tag (list)); + gst_event_new_tag ("GstDecoder", list)); } static GstFlowReturn diff --git a/ext/vp8/gstvp8dec.c b/ext/vp8/gstvp8dec.c index 2ef81adf39..25538a8139 100644 --- a/ext/vp8/gstvp8dec.c +++ b/ext/vp8/gstvp8dec.c @@ -323,7 +323,7 @@ gst_vp8_dec_send_tags (GstVP8Dec * dec) GST_TAG_VIDEO_CODEC, "VP8 video", NULL); gst_pad_push_event (GST_VIDEO_DECODER_SRC_PAD (dec), - gst_event_new_tag (list)); + gst_event_new_tag ("GstDecoder", list)); } static void diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index a63c8681d5..204c77bd78 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -456,7 +456,7 @@ gst_camera_bin_start_capture (GstCameraBin2 * camerabin) active_pad = gst_element_get_static_pad (camerabin->src, GST_BASE_CAMERA_SRC_VIDEO_PAD_NAME); gst_pad_push_event (active_pad, - gst_event_new_tag (gst_tag_list_copy (taglist))); + gst_event_new_tag ("GstSrc", gst_tag_list_copy (taglist))); gst_object_unref (active_pad); } @@ -1364,7 +1364,7 @@ gst_camera_bin_image_src_buffer_probe (GstPad * pad, GstPadProbeInfo * info, GST_PTR_FORMAT, tags); if (tags) { peer = gst_pad_get_peer (pad); - gst_pad_send_event (peer, gst_event_new_tag (tags)); + gst_pad_send_event (peer, gst_event_new_tag ("GstSrc", tags)); gst_object_unref (peer); } } else { diff --git a/gst/mpegtsdemux/mpegtsparse.c b/gst/mpegtsdemux/mpegtsparse.c index 515559828d..974b98a9f3 100644 --- a/gst/mpegtsdemux/mpegtsparse.c +++ b/gst/mpegtsdemux/mpegtsparse.c @@ -512,7 +512,8 @@ mpegts_parse_tspad_push (MpegTSParse2 * parse, MpegTSParsePad * tspad, MpegTSBaseProgram *bp = (MpegTSBaseProgram *) tspad->program; pad_pids = bp->streams; if (bp->tags) { - gst_pad_push_event (tspad->pad, gst_event_new_tag (bp->tags)); + gst_pad_push_event (tspad->pad, gst_event_new_tag ("GstParser", + bp->tags)); bp->tags = NULL; } } else { diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index 2a7a7de323..f3ddd4e726 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1470,7 +1470,8 @@ push_new_segment: if (stream->taglist) { GST_DEBUG_OBJECT (stream->pad, "Sending tags %" GST_PTR_FORMAT, stream->taglist); - gst_pad_push_event (stream->pad, gst_event_new_tag (stream->taglist)); + gst_pad_push_event (stream->pad, gst_event_new_tag ("GstDemuxer", + stream->taglist)); stream->taglist = NULL; } diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 7892229bf6..022016e282 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -786,7 +786,7 @@ gst_mpegv_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame) g_free (codec); gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (mpvparse), - gst_event_new_tag (taglist)); + gst_event_new_tag ("GstParser", taglist)); mpvparse->send_codec_tag = FALSE; }