diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-11-16 02:26:00 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-11-16 03:44:17 +0100 |
commit | 6b66057e81295a8f509ecf393ba767ffbf800fb8 (patch) | |
tree | b4fe610982489980b99f28178614d475858775a9 | |
parent | c5c67c191318c43374cb6def88663b3f822087df (diff) |
rename eventsrenme-events
66 files changed, 238 insertions, 238 deletions
diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c index a999e312e..c08ee6d28 100644 --- a/ext/assrender/gstassrender.c +++ b/ext/assrender/gstassrender.c @@ -388,11 +388,11 @@ gst_ass_render_event_src (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (render, "seek received, driving from here"); - gst_event_parse_seek (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); + gst_event_seek_parse (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); /* Flush downstream, only for flushing seek */ if (flags & GST_SEEK_FLAG_FLUSH) - gst_pad_push_event (render->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (render->srcpad, gst_event_flush_start_new ()); /* Mark subtitle as flushing, unblocks chains */ g_mutex_lock (render->subtitle_mutex); @@ -1233,7 +1233,7 @@ gst_ass_render_event_video (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_ass_render_setcaps_video (pad, caps); gst_event_unref (event); break; @@ -1244,7 +1244,7 @@ gst_ass_render_event_video (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (render, "received new segment"); - gst_event_copy_segment (event, &segment); + gst_event_segment_copy (event, &segment); if (segment.format == GST_FORMAT_TIME) { GST_DEBUG_OBJECT (render, "VIDEO SEGMENT now: %" GST_SEGMENT_FORMAT, @@ -1270,7 +1270,7 @@ gst_ass_render_event_video (GstPad * pad, GstEvent * event) /* tag events may contain attachments which might be fonts */ GST_DEBUG_OBJECT (render, "got TAG event"); - gst_event_parse_tag (event, &taglist); + gst_event_tag_parse (event, &taglist); gst_ass_render_handle_tags (render, taglist); ret = gst_pad_push_event (render->srcpad, event); break; @@ -1328,7 +1328,7 @@ gst_ass_render_event_text (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_ass_render_setcaps_text (pad, caps); gst_event_unref (event); break; @@ -1339,7 +1339,7 @@ gst_ass_render_event_text (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (render, "received new segment"); - gst_event_copy_segment (event, &segment); + gst_event_segment_copy (event, &segment); if (segment.format == GST_FORMAT_TIME) { GST_DEBUG_OBJECT (render, "SUBTITLE SEGMENT now: %" GST_SEGMENT_FORMAT, @@ -1403,7 +1403,7 @@ gst_ass_render_event_text (GstPad * pad, GstEvent * event) /* tag events may contain attachments which might be fonts */ GST_DEBUG_OBJECT (render, "got TAG event"); - gst_event_parse_tag (event, &taglist); + gst_event_tag_parse (event, &taglist); gst_ass_render_handle_tags (render, taglist); ret = gst_pad_push_event (render->srcpad, event); break; diff --git a/ext/cdaudio/gstcdaudio.c b/ext/cdaudio/gstcdaudio.c index f1f0fb40b..75408680f 100644 --- a/ext/cdaudio/gstcdaudio.c +++ b/ext/cdaudio/gstcdaudio.c @@ -421,7 +421,7 @@ gst_cdaudio_send_event (GstElement * element, GstEvent * event) gint64 start, stop; gint ret; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); /* FIXME, implement more formats */ diff --git a/ext/celt/gstceltdec.c b/ext/celt/gstceltdec.c index 2c43fddab..c427a0bf6 100644 --- a/ext/celt/gstceltdec.c +++ b/ext/celt/gstceltdec.c @@ -438,7 +438,7 @@ celt_dec_src_event (GstPad * pad, GstEvent * event) gint64 cur, stop; gint64 tcur, tstop; - gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur, + gst_event_seek_parse (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop); /* we have to ask our peer to seek to time here as we know @@ -454,7 +454,7 @@ celt_dec_src_event (GstPad * pad, GstEvent * event) break; /* then seek with time on the peer */ - real_seek = gst_event_new_seek (rate, GST_FORMAT_TIME, + real_seek = gst_event_seek_new (rate, GST_FORMAT_TIME, flags, cur_type, tcur, stop_type, tstop); GST_LOG_OBJECT (dec, "seek to %" GST_TIME_FORMAT, GST_TIME_ARGS (tcur)); diff --git a/ext/celt/gstceltenc.c b/ext/celt/gstceltenc.c index c2011b31c..fa8a58dac 100644 --- a/ext/celt/gstceltenc.c +++ b/ext/celt/gstceltenc.c @@ -789,7 +789,7 @@ gst_celt_enc_sinkevent (GstPad * pad, GstEvent * event) GstTagSetter *setter = GST_TAG_SETTER (enc); const GstTagMergeMode mode = gst_tag_setter_get_tag_merge_mode (setter); - gst_event_parse_tag (event, &list); + gst_event_tag_parse (event, &list); gst_tag_setter_merge_tags (setter, list, mode); res = gst_pad_event_default (pad, event); break; diff --git a/ext/directfb/dfbvideosink.c b/ext/directfb/dfbvideosink.c index 038e3ee33..6b2eec5c5 100644 --- a/ext/directfb/dfbvideosink.c +++ b/ext/directfb/dfbvideosink.c @@ -1941,7 +1941,7 @@ gst_dfbvideosink_navigation_send_event (GstNavigation * navigation, dst.h = dfbvideosink->out_height; gst_video_sink_center_rect (src, dst, &result, dfbvideosink->hw_scaling); - event = gst_event_new_navigation (structure); + event = gst_event_navigation_new (structure); /* Our coordinates can be wrong here if we centered the video */ diff --git a/ext/gme/gstgme.c b/ext/gme/gstgme.c index eeef13cdf..9a73450c4 100644 --- a/ext/gme/gstgme.c +++ b/ext/gme/gstgme.c @@ -219,7 +219,7 @@ gst_gme_dec_src_event (GstPad * pad, GstEvent * event) gint64 start, stop; gboolean flush; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); gst_event_unref (event); @@ -253,7 +253,7 @@ gst_gme_dec_src_event (GstPad * pad, GstEvent * event) flush = (flags & GST_SEEK_FLAG_FLUSH) == GST_SEEK_FLAG_FLUSH; if (flush) { - gst_pad_push_event (gme->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (gme->srcpad, gst_event_flush_start_new ()); } else { gst_pad_stop_task (gme->srcpad); } @@ -266,7 +266,7 @@ gst_gme_dec_src_event (GstPad * pad, GstEvent * event) } if (flush) { - gst_pad_push_event (gme->srcpad, gst_event_new_flush_stop (TRUE)); + gst_pad_push_event (gme->srcpad, gst_event_flush_stop_new (TRUE)); } if (stop == GST_CLOCK_TIME_NONE @@ -278,7 +278,7 @@ gst_gme_dec_src_event (GstPad * pad, GstEvent * event) seg.start = dest; seg.stop = stop; seg.time = dest; - gst_pad_push_event (gme->srcpad, gst_event_new_segment (&seg)); + gst_pad_push_event (gme->srcpad, gst_event_segment_new (&seg)); gme->seekpoint = dest / GST_MSECOND; /* nsecs to msecs */ gme->seeking = TRUE; @@ -367,7 +367,7 @@ gst_gme_play (GstPad * pad) if (gme_err) { GST_ELEMENT_ERROR (gme, STREAM, DEMUX, (NULL), (gme_err)); gst_pad_pause_task (pad); - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); gst_object_unref (gme); return; } @@ -385,19 +385,19 @@ gst_gme_play (GstPad * pad) gst_pad_pause_task (pad); if (flow_return == GST_FLOW_UNEXPECTED) { - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); } else if (flow_return < GST_FLOW_UNEXPECTED || flow_return == GST_FLOW_NOT_LINKED) { GST_ELEMENT_ERROR (gme, STREAM, FAILED, ("Internal data stream error."), ("stream stopped, reason %s", gst_flow_get_name (flow_return))); - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); } } if (gme_tell (gme->player) * GST_MSECOND > gme->total_duration) { gst_pad_pause_task (pad); - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); } gst_object_unref (gme); @@ -480,7 +480,7 @@ gme_setup (GstGmeDec * gme) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_DURATION, total_duration, NULL); - gst_pad_push_event (gme->srcpad, gst_event_new_tag (taglist)); + gst_pad_push_event (gme->srcpad, gst_event_tag_new (taglist)); g_free (info); @@ -493,7 +493,7 @@ gme_setup (GstGmeDec * gme) gme_set_fade (gme->player, fade_time); gst_segment_init (&seg, GST_FORMAT_TIME); - gst_pad_push_event (gme->srcpad, gst_event_new_segment (&seg)); + gst_pad_push_event (gme->srcpad, gst_event_segment_new (&seg)); gst_pad_start_task (gme->srcpad, (GstTaskFunction) gst_gme_play, gme->srcpad); diff --git a/ext/jp2k/gstjasperdec.c b/ext/jp2k/gstjasperdec.c index e896142bd..fdd2d5d5b 100644 --- a/ext/jp2k/gstjasperdec.c +++ b/ext/jp2k/gstjasperdec.c @@ -716,7 +716,7 @@ gst_jasper_dec_src_event (GstPad * pad, GstEvent * event) GstClockTime timestamp; gdouble proportion; - gst_event_parse_qos (event, &proportion, &diff, ×tamp); + gst_event_qos_parse (event, &proportion, &diff, ×tamp); gst_jasper_dec_update_qos (dec, proportion, timestamp + diff); break; diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c index 8ee8b69df..9823a95e2 100644 --- a/ext/kate/gstkateenc.c +++ b/ext/kate/gstkateenc.c @@ -1245,7 +1245,7 @@ gst_kate_enc_sink_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_kate_enc_setcaps (pad, caps); gst_event_unref (event); break; @@ -1259,7 +1259,7 @@ gst_kate_enc_sink_event (GstPad * pad, GstEvent * event) } else { GstSegment seg; - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); if (seg.format != GST_FORMAT_TIME || !GST_CLOCK_TIME_IS_VALID (seg.start)) { GST_WARNING_OBJECT (ke, @@ -1347,7 +1347,7 @@ gst_kate_enc_sink_event (GstPad * pad, GstEvent * event) if (ke->tags) { GstTagList *list; - gst_event_parse_tag (event, &list); + gst_event_tag_parse (event, &list); gst_tag_list_insert (ke->tags, list, gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (ke))); } else { diff --git a/ext/kate/gstkatetiger.c b/ext/kate/gstkatetiger.c index 134469fe9..7163e4e50 100644 --- a/ext/kate/gstkatetiger.c +++ b/ext/kate/gstkatetiger.c @@ -891,11 +891,11 @@ gst_kate_tiger_seek (GstKateTiger * tiger, GstPad * pad, GstEvent * event) GstSeekType cur_type, stop_type; gint64 cur, stop; - gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur, + gst_event_seek_parse (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop); if (flags & GST_SEEK_FLAG_FLUSH) - gst_pad_push_event (tiger->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (tiger->srcpad, gst_event_flush_start_new ()); GST_KATE_TIGER_MUTEX_LOCK (tiger); tiger->video_flushing = TRUE; diff --git a/ext/kate/gstkateutil.c b/ext/kate/gstkateutil.c index 787bc3e10..107fde561 100644 --- a/ext/kate/gstkateutil.c +++ b/ext/kate/gstkateutil.c @@ -496,7 +496,7 @@ gst_kate_util_decoder_base_segment_event (GstKateDecoderBase * decoder, { GstSegment seg; - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); GST_DEBUG_OBJECT (decoder, "kate pad segment: %" GST_SEGMENT_FORMAT, &seg); diff --git a/ext/libmms/gstmms.c b/ext/libmms/gstmms.c index 42831e7bc..24e467867 100644 --- a/ext/libmms/gstmms.c +++ b/ext/libmms/gstmms.c @@ -221,7 +221,7 @@ gst_mms_prepare_seek_segment (GstBaseSrc * src, GstEvent * event, GstFormat seek_format; gdouble rate; - gst_event_parse_seek (event, &rate, &seek_format, &flags, + gst_event_seek_parse (event, &rate, &seek_format, &flags, &cur_type, &cur, &stop_type, &stop); if (seek_format != GST_FORMAT_BYTES && seek_format != GST_FORMAT_TIME) { diff --git a/ext/musepack/gstmusepackdec.c b/ext/musepack/gstmusepackdec.c index 30a34bff3..96716614c 100644 --- a/ext/musepack/gstmusepackdec.c +++ b/ext/musepack/gstmusepackdec.c @@ -183,7 +183,7 @@ gst_musepackdec_handle_seek_event (GstMusepackDec * dec, GstEvent * event) gint64 start, stop; gint samplerate; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME && format != GST_FORMAT_DEFAULT) { @@ -203,7 +203,7 @@ gst_musepackdec_handle_seek_event (GstMusepackDec * dec, GstEvent * event) flush = ((flags & GST_SEEK_FLAG_FLUSH) == GST_SEEK_FLAG_FLUSH); if (flush) - gst_pad_push_event (dec->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (dec->srcpad, gst_event_flush_start_new ()); else gst_pad_pause_task (dec->sinkpad); /* not _stop_task()? */ @@ -215,7 +215,7 @@ gst_musepackdec_handle_seek_event (GstMusepackDec * dec, GstEvent * event) gst_segment_set_seek (&segment, rate, GST_FORMAT_DEFAULT, flags, start_type, start, stop_type, stop, NULL); - gst_pad_push_event (dec->sinkpad, gst_event_new_flush_stop ()); + gst_pad_push_event (dec->sinkpad, gst_event_flush_stop_new ()); GST_DEBUG_OBJECT (dec, "segment: [%" G_GINT64_FORMAT "-%" G_GINT64_FORMAT "] = [%" GST_TIME_FORMAT "-%" GST_TIME_FORMAT "]", @@ -247,7 +247,7 @@ gst_musepackdec_handle_seek_event (GstMusepackDec * dec, GstEvent * event) } if (flush) { - gst_pad_push_event (dec->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (dec->srcpad, gst_event_flush_stop_new ()); } gst_segment_set_last_stop (&segment, GST_FORMAT_DEFAULT, segment.start); @@ -606,7 +606,7 @@ gst_musepackdec_loop (GstPad * sinkpad) eos_and_pause: { GST_DEBUG_OBJECT (musepackdec, "sending EOS event"); - gst_pad_push_event (musepackdec->srcpad, gst_event_new_eos ()); + gst_pad_push_event (musepackdec->srcpad, gst_event_eos_new ()); /* fall through to pause */ } diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index 4ef0ffdbe..6f1edf71d 100644 --- a/ext/opus/gstopusenc.c +++ b/ext/opus/gstopusenc.c @@ -480,7 +480,7 @@ gst_opus_enc_sink_event (GstAudioEncoder * benc, GstEvent * event) GstTagSetter *setter = GST_TAG_SETTER (enc); const GstTagMergeMode mode = gst_tag_setter_get_tag_merge_mode (setter); - gst_event_parse_tag (event, &list); + gst_event_tag_parse (event, &list); gst_tag_setter_merge_tags (setter, list, mode); break; } diff --git a/ext/resindvd/gstmpegdemux.c b/ext/resindvd/gstmpegdemux.c index bfa883508..7110e4107 100644 --- a/ext/resindvd/gstmpegdemux.c +++ b/ext/resindvd/gstmpegdemux.c @@ -959,7 +959,7 @@ gst_flups_demux_src_event (GstPad * pad, GstEvent * event) gint64 bstart, bstop; GstEvent *bevent; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); GST_DEBUG_OBJECT (demux, "seek event, rate: %f start: %" GST_TIME_FORMAT @@ -997,7 +997,7 @@ gst_flups_demux_src_event (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (demux, "in bytes bstart %" G_GINT64_FORMAT " bstop %" G_GINT64_FORMAT, bstart, bstop); - bevent = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type, + bevent = gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, start_type, bstart, stop_type, bstop); res = gst_pad_push_event (demux->sinkpad, bevent); diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index a0059fdaa..f46147b87 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -1774,7 +1774,7 @@ rsn_dvdsrc_handle_navigation_event (resinDvdSrc * src, GstEvent * event) } /* Send ourselves a seek event to wake everything up and flush */ - seek = gst_event_new_seek (1.0, rsndvd_format, GST_SEEK_FLAG_FLUSH, + seek = gst_event_seek_new (1.0, rsndvd_format, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_NONE, -1, GST_SEEK_TYPE_NONE, -1); src->flushing_seek = TRUE; gst_element_send_event (GST_ELEMENT (src), seek); @@ -2399,7 +2399,7 @@ rsn_dvdsrc_src_event (GstBaseSrc * basesrc, GstEvent * event) GST_LOG_OBJECT (src, "handling seek event"); - gst_event_parse_seek (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); + gst_event_seek_parse (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); src->flushing_seek = ! !(flags & GST_SEEK_FLAG_FLUSH); GST_DEBUG_OBJECT (src, "%s seek event", src->flushing_seek ? "flushing" : "non-flushing"); @@ -2571,7 +2571,7 @@ rsn_dvdsrc_prepare_seek (GstBaseSrc * bsrc, GstEvent * event, gboolean update; gboolean ret; - gst_event_parse_seek (event, &rate, &seek_format, &flags, + gst_event_seek_parse (event, &rate, &seek_format, &flags, &cur_type, &cur, &stop_type, &stop); /* Don't allow bytes seeks - angle, time, chapter, title only is the plan */ diff --git a/ext/resindvd/rsnstreamselector.c b/ext/resindvd/rsnstreamselector.c index 9b30ea0f6..1ec3c8a53 100644 --- a/ext/resindvd/rsnstreamselector.c +++ b/ext/resindvd/rsnstreamselector.c @@ -269,7 +269,7 @@ gst_selector_pad_event (GstPad * pad, GstEvent * event) GST_OBJECT_LOCK (selpad); if (selpad->tags) gst_tag_list_free (selpad->tags); - gst_event_parse_tag (event, &tags); + gst_event_tag_parse (event, &tags); if (tags) tags = gst_tag_list_copy (tags); selpad->tags = tags; diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c index 9a30b28c0..6d6f9e3a8 100644 --- a/ext/rtmp/gstrtmpsrc.c +++ b/ext/rtmp/gstrtmpsrc.c @@ -436,7 +436,7 @@ gst_rtmp_src_prepare_seek_segment (GstBaseSrc * basesrc, GstEvent * event, src = GST_RTMP_SRC (basesrc); - gst_event_parse_seek (event, &rate, &format, &flags, + gst_event_seek_parse (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop); if (!src->seekable) { diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c index fa05ace1a..27e8663d4 100644 --- a/ext/sdl/sdlvideosink.c +++ b/ext/sdl/sdlvideosink.c @@ -953,7 +953,7 @@ gst_sdlvideosink_navigation_send_event (GstNavigation * navigation, dst.h = sdlvideosink->height; gst_video_sink_center_rect (src, dst, &result, FALSE); - event = gst_event_new_navigation (structure); + event = gst_event_navigation_new (structure); /* Our coordinates can be wrong here if we centered the video */ diff --git a/ext/sndfile/gstsfsink.c b/ext/sndfile/gstsfsink.c index 56dc4b006..b9d04909f 100644 --- a/ext/sndfile/gstsfsink.c +++ b/ext/sndfile/gstsfsink.c @@ -433,12 +433,12 @@ paused: gst_pad_pause_task (pad); /* fatal errors and NOT_LINKED cause EOS */ if (result == GST_FLOW_UNEXPECTED) { - gst_pad_send_event (pad, gst_event_new_eos ()); + gst_pad_send_event (pad, gst_event_eos_new ()); } else if (result < GST_FLOW_UNEXPECTED || result == GST_FLOW_NOT_LINKED) { GST_ELEMENT_ERROR (basesink, STREAM, FAILED, (_("Internal data stream error.")), ("stream stopped, reason %s", gst_flow_get_name (result))); - gst_pad_send_event (pad, gst_event_new_eos ()); + gst_pad_send_event (pad, gst_event_eos_new ()); } gst_object_unref (this); return; diff --git a/ext/spc/gstspc.c b/ext/spc/gstspc.c index 2c74a9c56..0e6e5fe0a 100644 --- a/ext/spc/gstspc.c +++ b/ext/spc/gstspc.c @@ -266,7 +266,7 @@ gst_spc_dec_src_event (GstPad * pad, GstEvent * event) gint64 start, stop; gboolean flush; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME) { @@ -295,7 +295,7 @@ gst_spc_dec_src_event (GstPad * pad, GstEvent * event) flush = (flags & GST_SEEK_FLAG_FLUSH) == GST_SEEK_FLAG_FLUSH; if (flush) { - gst_pad_push_event (spc->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (spc->srcpad, gst_event_flush_start_new ()); } else { gst_pad_stop_task (spc->srcpad); } @@ -308,7 +308,7 @@ gst_spc_dec_src_event (GstPad * pad, GstEvent * event) } if (flush) { - gst_pad_push_event (spc->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (spc->srcpad, gst_event_flush_stop_new ()); } if (stop == GST_CLOCK_TIME_NONE) @@ -441,13 +441,13 @@ spc_play (GstPad * pad) if (flow_return <= GST_FLOW_UNEXPECTED || flow_return == GST_FLOW_NOT_LINKED) { - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); } } if (position >= end) { gst_pad_pause_task (pad); - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); } gst_object_unref (spc); diff --git a/ext/swfdec/gstswfdec.c b/ext/swfdec/gstswfdec.c index 9394ddec3..8c0b71329 100644 --- a/ext/swfdec/gstswfdec.c +++ b/ext/swfdec/gstswfdec.c @@ -449,8 +449,8 @@ gst_swfdec_render (GstSwfdec * swfdec, int ret) if (!ret) { gst_task_stop (swfdec->task); - res = gst_pad_push_event (swfdec->videopad, gst_event_new_eos ()); - res = gst_pad_push_event (swfdec->audiopad, gst_event_new_eos ()); + res = gst_pad_push_event (swfdec->videopad, gst_event_eos_new ()); + res = gst_pad_push_event (swfdec->audiopad, gst_event_eos_new ()); return; } @@ -486,8 +486,8 @@ gst_swfdec_render (GstSwfdec * swfdec, int ret) if (!video_buffer) { gst_task_stop (swfdec->task); - gst_pad_push_event (swfdec->videopad, gst_event_new_eos ()); - gst_pad_push_event (swfdec->audiopad, gst_event_new_eos ()); + gst_pad_push_event (swfdec->videopad, gst_event_eos_new ()); + gst_pad_push_event (swfdec->audiopad, gst_event_eos_new ()); return; } @@ -737,7 +737,7 @@ gst_swfdec_src_event (GstPad * pad, GstEvent * event) int ret; int n_frames; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); new_frame = start / swfdec->interval; @@ -751,9 +751,9 @@ gst_swfdec_src_event (GstPad * pad, GstEvent * event) GST_DEBUG ("sending flush event\n"); - event = gst_event_new_flush_start (); + event = gst_event_flush_start_new (); gst_pad_push_event (swfdec->videopad, event); - event = gst_event_new_flush_start (); + event = gst_event_flush_start_new (); gst_pad_push_event (swfdec->audiopad, event); swfdec->send_discont = TRUE; diff --git a/ext/timidity/gsttimidity.c b/ext/timidity/gsttimidity.c index cbbcc0da1..dfa157597 100644 --- a/ext/timidity/gsttimidity.c +++ b/ext/timidity/gsttimidity.c @@ -380,7 +380,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event) if (!timidity->song) break; - gst_event_parse_seek (event, &rate, &src_format, &flags, + gst_event_seek_parse (event, &rate, &src_format, &flags, &start_type, &orig_start, &stop_type, &stop); dst_format = GST_FORMAT_DEFAULT; @@ -393,7 +393,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event) if (flush) { GST_DEBUG ("performing flush"); - gst_pad_push_event (timidity->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (timidity->srcpad, gst_event_flush_start_new ()); } else { gst_pad_stop_task (timidity->sinkpad); } @@ -401,7 +401,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event) GST_PAD_STREAM_LOCK (timidity->sinkpad); if (flush) { - gst_pad_push_event (timidity->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (timidity->srcpad, gst_event_flush_stop_new ()); } gst_segment_set_seek (timidity->o_segment, rate, dst_format, flags, @@ -698,7 +698,7 @@ gst_timidity_loop (GstPad * sinkpad) out = gst_timidity_get_buffer (timidity); if (!out) { GST_LOG_OBJECT (timidity, "Song ended, generating eos"); - gst_pad_push_event (timidity->srcpad, gst_event_new_eos ()); + gst_pad_push_event (timidity->srcpad, gst_event_eos_new ()); timidity->o_seek = FALSE; goto paused; } @@ -726,7 +726,7 @@ paused: } eos: { - gst_pad_push_event (timidity->srcpad, gst_event_new_eos ()); + gst_pad_push_event (timidity->srcpad, gst_event_eos_new ()); goto paused; } error: @@ -734,7 +734,7 @@ error: GST_ELEMENT_ERROR (timidity, STREAM, FAILED, ("Internal data stream error"), ("Streaming stopped, reason %s", gst_flow_get_name (ret))); - gst_pad_push_event (timidity->srcpad, gst_event_new_eos ()); + gst_pad_push_event (timidity->srcpad, gst_event_eos_new ()); goto paused; } } diff --git a/ext/timidity/gstwildmidi.c b/ext/timidity/gstwildmidi.c index 6def9f946..8508b9e40 100644 --- a/ext/timidity/gstwildmidi.c +++ b/ext/timidity/gstwildmidi.c @@ -454,7 +454,7 @@ gst_wildmidi_do_seek (GstWildmidi * wildmidi, GstEvent * event) if (!wildmidi->song) return FALSE; - gst_event_parse_seek (event, &rate, &src_format, &flags, + gst_event_seek_parse (event, &rate, &src_format, &flags, &start_type, &start, &stop_type, &stop); /* convert the input format to samples */ @@ -481,7 +481,7 @@ gst_wildmidi_do_seek (GstWildmidi * wildmidi, GstEvent * event) if (flush) { GST_DEBUG ("performing flush"); - gst_pad_push_event (wildmidi->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (wildmidi->srcpad, gst_event_flush_start_new ()); } else { gst_pad_stop_task (wildmidi->sinkpad); } @@ -491,7 +491,7 @@ gst_wildmidi_do_seek (GstWildmidi * wildmidi, GstEvent * event) GST_PAD_STREAM_LOCK (wildmidi->sinkpad); if (flush) { - gst_pad_push_event (wildmidi->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (wildmidi->srcpad, gst_event_flush_stop_new ()); } /* update the segment now */ @@ -855,10 +855,10 @@ pause: gst_pad_pause_task (sinkpad); if (ret == GST_FLOW_UNEXPECTED) { /* perform EOS logic */ - event = gst_event_new_eos (); + event = gst_event_eos_new (); gst_pad_push_event (wildmidi->srcpad, event); } else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) { - event = gst_event_new_eos (); + event = gst_event_eos_new (); /* for fatal errors we post an error message, post the error * first so the app knows about the error first. */ GST_ELEMENT_ERROR (wildmidi, STREAM, FAILED, diff --git a/ext/vp8/gstvp8dec.c b/ext/vp8/gstvp8dec.c index 4a4a260e6..09e49d1c5 100644 --- a/ext/vp8/gstvp8dec.c +++ b/ext/vp8/gstvp8dec.c @@ -319,7 +319,7 @@ gst_vp8_dec_send_tags (GstVP8Dec * dec) GST_TAG_VIDEO_CODEC, "VP8 video", NULL); gst_pad_push_event (GST_BASE_VIDEO_CODEC_SRC_PAD (dec), - gst_event_new_tag (list)); + gst_event_tag_new (list)); } static void diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c index 7a1832843..6601156c0 100644 --- a/ext/vp8/gstvp8enc.c +++ b/ext/vp8/gstvp8enc.c @@ -1193,7 +1193,7 @@ gst_vp8_enc_sink_event (GstBaseVideoEncoder * benc, GstEvent * event) GstTagSetter *setter = GST_TAG_SETTER (enc); const GstTagMergeMode mode = gst_tag_setter_get_tag_merge_mode (setter); - gst_event_parse_tag (event, &list); + gst_event_tag_parse (event, &list); gst_tag_setter_merge_tags (setter, list, mode); } diff --git a/gst-libs/gst/signalprocessor/gstsignalprocessor.c b/gst-libs/gst/signalprocessor/gstsignalprocessor.c index 3a089ed29..486d87bc5 100644 --- a/gst-libs/gst/signalprocessor/gstsignalprocessor.c +++ b/gst-libs/gst/signalprocessor/gstsignalprocessor.c @@ -605,7 +605,7 @@ gst_signal_processor_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_signal_processor_setcaps (pad, caps); gst_event_unref (event); break; diff --git a/gst-libs/gst/video/gstbasevideodecoder.c b/gst-libs/gst/video/gstbasevideodecoder.c index b482c66d6..eb4a60ad7 100644 --- a/gst-libs/gst/video/gstbasevideodecoder.c +++ b/gst-libs/gst/video/gstbasevideodecoder.c @@ -406,7 +406,7 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_base_video_decoder_setcaps (base_video_decoder, caps); gst_event_unref (event); break; @@ -440,7 +440,7 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event) GstSegment *segment = &GST_BASE_VIDEO_CODEC (base_video_decoder)->segment; GST_BASE_VIDEO_CODEC_STREAM_LOCK (base_video_decoder); - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); if (seg.format == GST_FORMAT_TIME) { GST_DEBUG_OBJECT (base_video_decoder, @@ -468,7 +468,7 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event) seg.time = start; /* replace event */ gst_event_unref (event); - event = gst_event_new_segment (&seg); + event = gst_event_segment_new (&seg); } else { GST_BASE_VIDEO_CODEC_STREAM_UNLOCK (base_video_decoder); goto newseg_wrong_format; @@ -532,7 +532,7 @@ gst_base_video_decoder_do_seek (GstBaseVideoDecoder * dec, GstEvent * event) GstSegment seek_segment; guint32 seqnum; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start_time, &end_type, &end_time); /* we'll handle plain open-ended flushing seeks with the simple approach */ @@ -569,7 +569,7 @@ gst_base_video_decoder_do_seek (GstBaseVideoDecoder * dec, GstEvent * event) } seqnum = gst_event_get_seqnum (event); - event = gst_event_new_seek (1.0, GST_FORMAT_BYTES, flags, + event = gst_event_seek_new (1.0, GST_FORMAT_BYTES, flags, GST_SEEK_TYPE_SET, start, GST_SEEK_TYPE_NONE, -1); gst_event_set_seqnum (event, seqnum); @@ -602,7 +602,7 @@ gst_base_video_decoder_src_event (GstPad * pad, GstEvent * event) gint64 tcur, tstop; guint32 seqnum; - gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur, + gst_event_seek_parse (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop); seqnum = gst_event_get_seqnum (event); @@ -628,7 +628,7 @@ gst_base_video_decoder_src_event (GstPad * pad, GstEvent * event) goto convert_error; /* then seek with time on the peer */ - event = gst_event_new_seek (rate, GST_FORMAT_TIME, + event = gst_event_seek_new (rate, GST_FORMAT_TIME, flags, cur_type, tcur, stop_type, tstop); gst_event_set_seqnum (event, seqnum); @@ -645,7 +645,7 @@ gst_base_video_decoder_src_event (GstPad * pad, GstEvent * event) GstClockTime timestamp; GstClockTime duration; - gst_event_parse_qos (event, &type, &proportion, &diff, ×tamp); + gst_event_qos_parse (event, &type, &proportion, &diff, ×tamp); GST_OBJECT_LOCK (base_video_decoder); GST_BASE_VIDEO_CODEC (base_video_decoder)->proportion = proportion; @@ -1232,7 +1232,7 @@ gst_base_video_decoder_chain (GstPad * pad, GstBuffer * buf) gst_segment_init (segment, GST_FORMAT_TIME); - event = gst_event_new_segment (segment); + event = gst_event_segment_new (segment); ret = gst_base_video_decoder_push_src_event (base_video_decoder, event); if (!ret) { diff --git a/gst-libs/gst/video/gstbasevideoencoder.c b/gst-libs/gst/video/gstbasevideoencoder.c index aff28cb73..636a32e25 100644 --- a/gst-libs/gst/video/gstbasevideoencoder.c +++ b/gst-libs/gst/video/gstbasevideoencoder.c @@ -470,7 +470,7 @@ gst_base_video_encoder_sink_eventfunc (GstBaseVideoEncoder * base_video_encoder, { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_base_video_encoder_sink_setcaps (base_video_encoder, caps); gst_event_unref (event); } @@ -497,7 +497,7 @@ gst_base_video_encoder_sink_eventfunc (GstBaseVideoEncoder * base_video_encoder, const GstSegment *segment; GST_BASE_VIDEO_CODEC_STREAM_LOCK (base_video_encoder); - gst_event_parse_segment (event, &segment); + gst_event_segment_parse (event, &segment); GST_DEBUG_OBJECT (base_video_encoder, "newseg rate %g, applied rate %g, " "format %d, start = %" GST_TIME_FORMAT ", stop = %" GST_TIME_FORMAT diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c index a286dceec..7654cc808 100644 --- a/gst/aiff/aiffparse.c +++ b/gst/aiff/aiffparse.c @@ -287,7 +287,7 @@ gst_aiff_parse_perform_seek (GstAiffParse * aiff, GstEvent * event) if (event) { GST_DEBUG_OBJECT (aiff, "doing seek with event"); - gst_event_parse_seek (event, &rate, &format, &flags, + gst_event_seek_parse (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop); /* no negative rates yet */ @@ -331,7 +331,7 @@ gst_aiff_parse_perform_seek (GstAiffParse * aiff, GstEvent * event) * blocking in preroll). */ if (flush) { GST_DEBUG_OBJECT (aiff, "sending flush start"); - gst_pad_push_event (aiff->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (aiff->srcpad, gst_event_flush_start_new ()); } else { gst_pad_pause_task (aiff->sinkpad); } @@ -419,7 +419,7 @@ gst_aiff_parse_perform_seek (GstAiffParse * aiff, GstEvent * event) if (flush) { /* if we sent a FLUSH_START, we now send a FLUSH_STOP */ GST_DEBUG_OBJECT (aiff, "sending flush stop"); - gst_pad_push_event (aiff->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (aiff->srcpad, gst_event_flush_stop_new ()); } else if (aiff->segment_running) { /* we are running the current segment and doing a non-flushing seek, * close the segment first based on the previous last_stop. */ @@ -1267,7 +1267,7 @@ pause: gst_message_new_segment_done (GST_OBJECT_CAST (aiff), aiff->segment.format, stop)); } else { - gst_pad_push_event (aiff->srcpad, gst_event_new_eos ()); + gst_pad_push_event (aiff->srcpad, gst_event_eos_new ()); } } else if (ret < GST_FLOW_UNEXPECTED || ret == GST_FLOW_NOT_LINKED) { /* for fatal errors we post an error message, post the error @@ -1275,7 +1275,7 @@ pause: GST_ELEMENT_ERROR (aiff, STREAM, FAILED, (_("Internal data flow error.")), ("streaming task paused, reason %s (%d)", reason, ret)); - gst_pad_push_event (aiff->srcpad, gst_event_new_eos ()); + gst_pad_push_event (aiff->srcpad, gst_event_eos_new ()); } return; } diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index bcd8b72b2..089457171 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -366,7 +366,7 @@ gst_asf_mux_sink_event (GstPad * pad, GstEvent * event) */ if (asfmux->state == GST_ASF_MUX_STATE_NONE) { GstTagList *list = NULL; - gst_event_parse_tag (event, &list); + gst_event_tag_parse (event, &list); if (asfmux->merge_stream_tags) { GstTagSetter *setter = GST_TAG_SETTER (asfmux); const GstTagMergeMode mode = @@ -1998,7 +1998,7 @@ gst_asf_mux_collected (GstCollectPads * collect, gpointer data) ret = gst_asf_mux_stop_file (asfmux); } if (ret == GST_FLOW_OK) { - gst_pad_push_event (asfmux->srcpad, gst_event_new_eos ()); + gst_pad_push_event (asfmux->srcpad, gst_event_eos_new ()); ret = GST_FLOW_UNEXPECTED; } asfmux->state = GST_ASF_MUX_STATE_EOS; diff --git a/gst/asfmux/gstasfparse.c b/gst/asfmux/gstasfparse.c index ab1f69152..142cfe853 100644 --- a/gst/asfmux/gstasfparse.c +++ b/gst/asfmux/gstasfparse.c @@ -344,11 +344,11 @@ pause: gst_pad_pause_task (pad); if (ret == GST_FLOW_UNEXPECTED) { - gst_pad_push_event (asfparse->srcpad, gst_event_new_eos ()); + gst_pad_push_event (asfparse->srcpad, gst_event_eos_new ()); } else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) { GST_ELEMENT_ERROR (asfparse, STREAM, FAILED, (NULL), ("streaming task paused, reason %s (%d)", reason, ret)); - gst_pad_push_event (asfparse->srcpad, gst_event_new_eos ()); + gst_pad_push_event (asfparse->srcpad, gst_event_eos_new ()); } } } diff --git a/gst/audiovisualizers/gstbaseaudiovisualizer.c b/gst/audiovisualizers/gstbaseaudiovisualizer.c index b45e2feb5..933911cf8 100644 --- a/gst/audiovisualizers/gstbaseaudiovisualizer.c +++ b/gst/audiovisualizers/gstbaseaudiovisualizer.c @@ -670,7 +670,7 @@ gst_base_audio_visualizer_src_setcaps (GstBaseAudioVisualizer * scope, GST_DEBUG_OBJECT (scope, "blocks: spf %u, req_spf %u", scope->spf, scope->req_spf); - res = gst_pad_push_event (scope->srcpad, gst_event_new_caps (caps)); + res = gst_pad_push_event (scope->srcpad, gst_event_caps_new (caps)); return res; @@ -960,7 +960,7 @@ gst_base_audio_visualizer_src_event (GstPad * pad, GstEvent * event) GstClockTimeDiff diff; GstClockTime timestamp; - gst_event_parse_qos (event, NULL, &proportion, &diff, ×tamp); + gst_event_qos_parse (event, NULL, &proportion, &diff, ×tamp); /* save stuff for the _chain() function */ GST_OBJECT_LOCK (scope); @@ -998,7 +998,7 @@ gst_base_audio_visualizer_sink_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); res = gst_base_audio_visualizer_sink_setcaps (scope, caps); break; } @@ -1014,7 +1014,7 @@ gst_base_audio_visualizer_sink_event (GstPad * pad, GstEvent * event) /* the newsegment values are used to clip the input samples * and to convert the incomming timestamps to running time so * we can do QoS */ - gst_event_copy_segment (event, &scope->segment); + gst_event_segment_copy (event, &scope->segment); res = gst_pad_push_event (scope->srcpad, event); break; diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index baf3bdf1c..01ae352d0 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -1469,7 +1469,7 @@ gst_camerabin_rewrite_tags (GstCameraBin * camera) gst_camerabin_rewrite_tags_to_bin (GST_BIN (camera->active_bin), list); } else { /* Image tags need to be sent as a serialized event into image queue */ - GstEvent *tagevent = gst_event_new_tag (gst_tag_list_copy (list)); + GstEvent *tagevent = gst_event_tag_new (gst_tag_list_copy (list)); gst_camerabin_send_img_queue_event (camera, tagevent); } @@ -1724,7 +1724,7 @@ gst_camerabin_send_video_eos (GstCameraBin * camera) /* Send eos event to video bin */ GST_INFO_OBJECT (camera, "sending eos to videobin"); videopad = gst_element_get_static_pad (camera->vidbin, "sink"); - gst_pad_send_event (videopad, gst_event_new_eos ()); + gst_pad_send_event (videopad, gst_event_eos_new ()); gst_object_unref (videopad); /* Block viewfinder after capturing if requested by application */ GST_OBJECT_LOCK (camera); @@ -1999,7 +1999,7 @@ gst_camerabin_have_queue_data (GstPad * pad, GstMiniObject * mini_obj, GST_LOG_OBJECT (camera, "queue sending image buffer to imagebin"); - tagevent = gst_event_new_tag (gst_tag_list_copy (camera->event_tags)); + tagevent = gst_event_tag_new (gst_tag_list_copy (camera->event_tags)); gst_element_send_event (camera->imgbin, tagevent); gst_tag_list_free (camera->event_tags); camera->event_tags = gst_tag_list_new (); @@ -2016,7 +2016,7 @@ gst_camerabin_have_queue_data (GstPad * pad, GstMiniObject * mini_obj, GstTagList *tlist; GST_DEBUG_OBJECT (camera, "queue sending taglist to image pipeline"); - gst_event_parse_tag (event, &tlist); + gst_event_tag_parse (event, &tlist); gst_tag_list_insert (camera->event_tags, tlist, GST_TAG_MERGE_REPLACE); ret = FALSE; } else if (evs && gst_structure_has_name (evs, "img-filename")) { @@ -2042,7 +2042,7 @@ gst_camerabin_have_queue_data (GstPad * pad, GstMiniObject * mini_obj, GST_DEBUG_OBJECT (camera, "queue sending EOS to image pipeline"); gst_pad_set_blocked_async (camera->pad_src_queue, TRUE, (GstPadBlockCallback) camerabin_pad_blocked, camera); - gst_element_send_event (camera->imgbin, gst_event_new_eos ()); + gst_element_send_event (camera->imgbin, gst_event_eos_new ()); ret = FALSE; } } diff --git a/gst/camerabin/gstinputselector.c b/gst/camerabin/gstinputselector.c index 8fe8c0f02..b74d897e9 100644 --- a/gst/camerabin/gstinputselector.c +++ b/gst/camerabin/gstinputselector.c @@ -404,7 +404,7 @@ gst_selector_pad_event (GstPad * pad, GstEvent * event) { GstTagList *tags, *oldtags, *newtags; - gst_event_parse_tag (event, &tags); + gst_event_tag_parse (event, &tags); GST_OBJECT_LOCK (selpad); oldtags = selpad->tags; diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index afae1014a..b640ad08b 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -446,7 +446,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_tag_new (gst_tag_list_copy (taglist))); gst_object_unref (active_pad); } @@ -463,7 +463,7 @@ gst_camera_bin_stop_capture (GstCameraBin2 * camerabin) if (camerabin->mode == MODE_VIDEO && camerabin->audio_src) { camerabin->audio_drop_eos = FALSE; - gst_element_send_event (camerabin->audio_src, gst_event_new_eos ()); + gst_element_send_event (camerabin->audio_src, gst_event_eos_new ()); } } @@ -1287,7 +1287,7 @@ gst_camera_bin_image_src_buffer_probe (GstPad * pad, GstBuffer * buf, 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_tag_new (tags)); gst_object_unref (peer); } } else { diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 8dfe41cd7..78b0c471c 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -264,7 +264,7 @@ gst_wrapper_camera_bin_src_vidsrc_probe (GstPad * pad, GstBuffer * buffer, } else if (self->video_rec_status == GST_VIDEO_RECORDING_STATUS_FINISHING) { /* send eos */ GST_DEBUG_OBJECT (self, "Finishing video recording, pushing eos"); - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); self->video_rec_status = GST_VIDEO_RECORDING_STATUS_DONE; gst_base_camera_src_finish_capture (camerasrc); } else { diff --git a/gst/cdxaparse/gstcdxaparse.c b/gst/cdxaparse/gstcdxaparse.c index efcda2117..3c11fb06c 100644 --- a/gst/cdxaparse/gstcdxaparse.c +++ b/gst/cdxaparse/gstcdxaparse.c @@ -361,7 +361,7 @@ eos: if (buf) gst_buffer_unref (buf); buf = NULL; - gst_pad_push_event (cdxa->srcpad, gst_event_new_eos ()); + gst_pad_push_event (cdxa->srcpad, gst_event_eos_new ()); /* fallthrough */ } pause: @@ -412,7 +412,7 @@ gst_cdxa_parse_do_seek (GstCDXAParse * cdxa, GstEvent * event) GstFormat format; gint64 start, off, upstream_size; - gst_event_parse_seek (event, NULL, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, NULL, &format, &flags, &start_type, &start, NULL, NULL); if (format != GST_FORMAT_BYTES) { @@ -437,17 +437,17 @@ gst_cdxa_parse_do_seek (GstCDXAParse * cdxa, GstEvent * event) } /* unlock upstream pull_range */ - gst_pad_push_event (cdxa->sinkpad, gst_event_new_flush_start ()); + gst_pad_push_event (cdxa->sinkpad, gst_event_flush_start_new ()); /* make sure our loop function exits */ - gst_pad_push_event (cdxa->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (cdxa->srcpad, gst_event_flush_start_new ()); /* wait for streaming to finish */ GST_PAD_STREAM_LOCK (cdxa->sinkpad); /* prepare for streaming again */ - gst_pad_push_event (cdxa->sinkpad, gst_event_new_flush_stop ()); - gst_pad_push_event (cdxa->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (cdxa->sinkpad, gst_event_flush_stop_new ()); + gst_pad_push_event (cdxa->srcpad, gst_event_flush_stop_new ()); gst_pad_push_event (cdxa->srcpad, gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_BYTES, diff --git a/gst/cdxaparse/gstvcdparse.c b/gst/cdxaparse/gstvcdparse.c index 4bf148b82..77fe8e604 100644 --- a/gst/cdxaparse/gstvcdparse.c +++ b/gst/cdxaparse/gstvcdparse.c @@ -260,7 +260,7 @@ gst_vcd_parse_src_event (GstPad * pad, GstEvent * event) gdouble rate; gint64 start, stop; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format == GST_FORMAT_BYTES) { @@ -269,7 +269,7 @@ gst_vcd_parse_src_event (GstPad * pad, GstEvent * event) start = gst_vcd_parse_get_in_offset (start); if (stop_type != GST_SEEK_TYPE_NONE) stop = gst_vcd_parse_get_in_offset (stop); - event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type, + event = gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, start_type, start, stop_type, stop); } else { GST_WARNING_OBJECT (vcd, "seek event in non-byte format"); diff --git a/gst/debugutils/fpsdisplaysink.c b/gst/debugutils/fpsdisplaysink.c index 489d88183..916530184 100644 --- a/gst/debugutils/fpsdisplaysink.c +++ b/gst/debugutils/fpsdisplaysink.c @@ -246,7 +246,7 @@ on_video_sink_data_flow (GstPad * pad, GstMiniObject * mini_obj, GstClockTimeDiff diff; GstClockTime ts; - gst_event_parse_qos (ev, NULL, &diff, &ts); + gst_event_qos_parse (ev, NULL, &diff, &ts); if (diff <= 0.0) { g_atomic_int_inc (&self->frames_rendered); } else { diff --git a/gst/debugutils/gstcompare.c b/gst/debugutils/gstcompare.c index abf563c6c..8b598ac1b 100644 --- a/gst/debugutils/gstcompare.c +++ b/gst/debugutils/gstcompare.c @@ -550,7 +550,7 @@ gst_compare_collect_pads (GstCollectPads * cpads, GstCompare * comp) gst_pad_get_element_private (comp->checkpad)); if (!buf1 && !buf2) { - gst_pad_push_event (comp->srcpad, gst_event_new_eos ()); + gst_pad_push_event (comp->srcpad, gst_event_eos_new ()); return GST_FLOW_UNEXPECTED; } else if (buf1 && buf2) { gst_compare_buffers (comp, buf1, buf2); diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index 346a31223..8dbbc5dab 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -362,11 +362,11 @@ gst_dvbsub_overlay_event_src (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (render, "seek received, driving from here"); - gst_event_parse_seek (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); + gst_event_seek_parse (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); /* Flush downstream, only for flushing seek */ if (flags & GST_SEEK_FLAG_FLUSH) - gst_pad_push_event (render->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (render->srcpad, gst_event_flush_start_new ()); gst_dvbsub_overlay_flush_subtitles (render); @@ -966,7 +966,7 @@ gst_dvbsub_overlay_event_video (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_dvbsub_overlay_setcaps_video (pad, caps); gst_event_unref (event); break; @@ -977,7 +977,7 @@ gst_dvbsub_overlay_event_video (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (render, "received new segment"); - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); if (seg.format == GST_FORMAT_TIME) { GST_DEBUG_OBJECT (render, "VIDEO SEGMENT now: %" GST_SEGMENT_FORMAT, @@ -1023,7 +1023,7 @@ gst_dvbsub_overlay_event_text (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (render, "received new segment"); - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); if (seg.format == GST_FORMAT_TIME) { GST_DEBUG_OBJECT (render, "SUBTITLE SEGMENT now: %" GST_SEGMENT_FORMAT, diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c index c8c016839..4c8aee6b0 100644 --- a/gst/dvdspu/gstdvdspu.c +++ b/gst/dvdspu/gstdvdspu.c @@ -383,7 +383,7 @@ gst_dvd_spu_video_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); res = gst_dvd_spu_video_set_caps (pad, caps); gst_event_unref (event); break; @@ -431,7 +431,7 @@ gst_dvd_spu_video_event (GstPad * pad, GstEvent * event) { GstSegment seg; - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); if (seg.format != GST_FORMAT_TIME) return FALSE; @@ -1022,7 +1022,7 @@ gst_dvd_spu_subpic_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); res = gst_dvd_spu_subpic_set_caps (pad, caps); gst_event_unref (event); break; @@ -1087,7 +1087,7 @@ gst_dvd_spu_subpic_event (GstPad * pad, GstEvent * event) { GstSegment seg; - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); /* Only print updates if they have an end time (don't print start_time * updates */ diff --git a/gst/frei0r/gstfrei0rmixer.c b/gst/frei0r/gstfrei0rmixer.c index bf2983e88..217393e0e 100644 --- a/gst/frei0r/gstfrei0rmixer.c +++ b/gst/frei0r/gstfrei0rmixer.c @@ -483,7 +483,7 @@ gst_frei0r_mixer_src_event (GstPad * pad, GstEvent * event) GstSeekFlags flags; /* parse the seek parameters */ - gst_event_parse_seek (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); + gst_event_seek_parse (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL); /* check if we are flushing */ if (flags & GST_SEEK_FLAG_FLUSH) { @@ -492,7 +492,7 @@ gst_frei0r_mixer_src_event (GstPad * pad, GstEvent * event) /* flushing seek, start flush downstream, the flush will be done * when all pads received a FLUSH_STOP. */ - gst_pad_push_event (self->src, gst_event_new_flush_start ()); + gst_pad_push_event (self->src, gst_event_flush_start_new ()); } ret = forward_event (self, event); @@ -633,7 +633,7 @@ eos: if (inbuf2) gst_buffer_unref (inbuf2); - gst_pad_push_event (self->src, gst_event_new_eos ()); + gst_pad_push_event (self->src, gst_event_eos_new ()); return GST_FLOW_UNEXPECTED; } } diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 504df27fc..ac7576f68 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -350,7 +350,7 @@ gst_hls_demux_src_event (GstPad * pad, GstEvent * event) return FALSE; } - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME) @@ -385,7 +385,7 @@ gst_hls_demux_src_event (GstPad * pad, GstEvent * event) if (flags & GST_SEEK_FLAG_FLUSH) { GST_DEBUG_OBJECT (demux, "sending flush start"); - gst_pad_push_event (demux->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (demux->srcpad, gst_event_flush_start_new ()); } demux->cancelled = TRUE; @@ -418,7 +418,7 @@ gst_hls_demux_src_event (GstPad * pad, GstEvent * event) if (flags & GST_SEEK_FLAG_FLUSH) { GST_DEBUG_OBJECT (demux, "sending flush stop"); - gst_pad_push_event (demux->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (demux->srcpad, gst_event_flush_stop_new ()); } demux->cancelled = FALSE; @@ -690,7 +690,7 @@ switch_pads (GstHLSDemux * demux, GstCaps * newcaps) * fixed in 0.11 with the new segments. */ if (demux->srcpad) - gst_pad_push_event (demux->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (demux->srcpad, gst_event_flush_stop_new ()); /* First create and activate new pad */ demux->srcpad = gst_pad_new_from_static_template (&srctemplate, NULL); @@ -707,7 +707,7 @@ switch_pads (GstHLSDemux * demux, GstCaps * newcaps) if (oldpad) { /* Push out EOS */ - gst_pad_push_event (oldpad, gst_event_new_eos ()); + gst_pad_push_event (oldpad, gst_event_eos_new ()); gst_pad_set_active (oldpad, FALSE); gst_element_remove_pad (GST_ELEMENT (demux), oldpad); } @@ -775,7 +775,7 @@ gst_hls_demux_loop (GstHLSDemux * demux) end_of_playlist: { GST_DEBUG_OBJECT (demux, "Reached end of playlist, sending EOS"); - gst_pad_push_event (demux->srcpad, gst_event_new_eos ()); + gst_pad_push_event (demux->srcpad, gst_event_eos_new ()); gst_hls_demux_stop (demux); return; } diff --git a/gst/jpegformat/gstjifmux.c b/gst/jpegformat/gstjifmux.c index b9552b18a..340144967 100644 --- a/gst/jpegformat/gstjifmux.c +++ b/gst/jpegformat/gstjifmux.c @@ -206,7 +206,7 @@ gst_jif_mux_sink_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_jif_mux_sink_setcaps (pad, caps); gst_event_unref (event); break; @@ -216,7 +216,7 @@ gst_jif_mux_sink_event (GstPad * pad, GstEvent * event) GstTagSetter *setter = GST_TAG_SETTER (self); const GstTagMergeMode mode = gst_tag_setter_get_tag_merge_mode (setter); - gst_event_parse_tag (event, &list); + gst_event_tag_parse (event, &list); gst_tag_setter_merge_tags (setter, list, mode); diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c index fd977dc79..09066da84 100644 --- a/gst/jpegformat/gstjpegparse.c +++ b/gst/jpegformat/gstjpegparse.c @@ -964,7 +964,7 @@ gst_jpeg_parse_sink_event (GstPad * pad, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); res = gst_jpeg_parse_sink_setcaps (pad, caps); gst_event_unref (event); break; @@ -997,7 +997,7 @@ gst_jpeg_parse_sink_event (GstPad * pad, GstEvent * event) else { GstTagList *taglist = NULL; - gst_event_parse_tag (event, &taglist); + gst_event_tag_parse (event, &taglist); /* Hold on to the tags till the srcpad caps are definitely set */ gst_tag_list_insert (get_tag_list (parse), taglist, GST_TAG_MERGE_REPLACE); diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index c56320e96..f592bfcdc 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -1356,7 +1356,7 @@ eos: adder->srcresult = GST_FLOW_UNEXPECTED; gst_pad_pause_task (adder->srcpad); GST_OBJECT_UNLOCK (adder); - gst_pad_push_event (adder->srcpad, gst_event_new_eos ()); + gst_pad_push_event (adder->srcpad, gst_event_eos_new ()); return; } } diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index a73f8f95f..93b1339c8 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -965,7 +965,7 @@ gst_flups_demux_handle_seek_push (GstFluPSDemux * demux, GstEvent * event) gint64 bstart, bstop; GstEvent *bevent; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); GST_DEBUG_OBJECT (demux, "seek event, rate: %f start: %" GST_TIME_FORMAT @@ -1003,7 +1003,7 @@ gst_flups_demux_handle_seek_push (GstFluPSDemux * demux, GstEvent * event) GST_DEBUG_OBJECT (demux, "in bytes bstart %" G_GINT64_FORMAT " bstop %" G_GINT64_FORMAT, bstart, bstop); - bevent = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type, + bevent = gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, start_type, bstart, stop_type, bstop); res = gst_pad_push_event (demux->sinkpad, bevent); @@ -1079,7 +1079,7 @@ gst_flups_demux_handle_seek_pull (GstFluPSDemux * demux, GstEvent * event) GstSegment seeksegment; GstClockTime first_pts = MPEGTIME_TO_GSTTIME (demux->first_pts); - gst_event_parse_seek (event, &rate, &format, &flags, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME) @@ -1099,8 +1099,8 @@ gst_flups_demux_handle_seek_pull (GstFluPSDemux * demux, GstEvent * event) /* Flush start up and downstream to make sure data flow and loops are idle */ demux->flushing = TRUE; - gst_flups_demux_send_event (demux, gst_event_new_flush_start ()); - gst_pad_push_event (demux->sinkpad, gst_event_new_flush_start ()); + gst_flups_demux_send_event (demux, gst_event_flush_start_new ()); + gst_pad_push_event (demux->sinkpad, gst_event_flush_start_new ()); } else { /* Pause the pulling task */ gst_pad_pause_task (demux->sinkpad); @@ -1112,7 +1112,7 @@ gst_flups_demux_handle_seek_pull (GstFluPSDemux * demux, GstEvent * event) if (flush) { /* Stop flushing upstream we need to pull */ demux->flushing = FALSE; - gst_pad_push_event (demux->sinkpad, gst_event_new_flush_stop ()); + gst_pad_push_event (demux->sinkpad, gst_event_flush_stop_new ()); } /* Work on a copy until we are sure the seek succeeded. */ @@ -1149,7 +1149,7 @@ gst_flups_demux_handle_seek_pull (GstFluPSDemux * demux, GstEvent * event) if (flush) { /* Stop flushing, the sinks are at time 0 now */ - gst_flups_demux_send_event (demux, gst_event_new_flush_stop ()); + gst_flups_demux_send_event (demux, gst_event_flush_stop_new ()); } else { gst_flups_demux_close_segment (demux); } @@ -2720,7 +2720,7 @@ pause: /* normal playback, send EOS to all linked pads */ gst_element_no_more_pads (GST_ELEMENT (demux)); GST_LOG_OBJECT (demux, "Sending EOS, at end of stream"); - if (!gst_flups_demux_send_event (demux, gst_event_new_eos ()) + if (!gst_flups_demux_send_event (demux, gst_event_eos_new ()) && !have_open_streams (demux)) { GST_WARNING_OBJECT (demux, "EOS and no streams open"); GST_ELEMENT_ERROR (demux, STREAM, FAILED, @@ -2731,7 +2731,7 @@ pause: GST_ELEMENT_ERROR (demux, STREAM, FAILED, ("Internal data stream error."), ("stream stopped, reason %s", reason)); - gst_flups_demux_send_event (demux, gst_event_new_eos ()); + gst_flups_demux_send_event (demux, gst_event_eos_new ()); } gst_object_unref (demux); diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c index b3b8249e6..7f640b264 100644 --- a/gst/mpegdemux/gstmpegtsdemux.c +++ b/gst/mpegdemux/gstmpegtsdemux.c @@ -404,7 +404,7 @@ gst_mpegts_demux_remove_pads (GstMpegTSDemux * demux) if (stream != NULL) { if (GST_IS_PAD (stream->pad)) { - gst_pad_push_event (stream->pad, gst_event_new_eos ()); + gst_pad_push_event (stream->pad, gst_event_eos_new ()); gst_element_remove_pad (GST_ELEMENT_CAST (demux), stream->pad); } stream->pad = NULL; @@ -2542,7 +2542,7 @@ gst_mpegts_demux_handle_seek_push (GstMpegTSDemux * demux, GstEvent * event) gint64 start, stop, bstart, bstop; GstEvent *bevent; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); GST_DEBUG_OBJECT (demux, "seek event, rate: %f start: %" GST_TIME_FORMAT @@ -2581,7 +2581,7 @@ gst_mpegts_demux_handle_seek_push (GstMpegTSDemux * demux, GstEvent * event) GST_DEBUG_OBJECT (demux, "in bytes bstart %" G_GINT64_FORMAT " bstop %" G_GINT64_FORMAT, bstart, bstop); - bevent = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type, + bevent = gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, start_type, bstart, stop_type, bstop); res = gst_pad_push_event (demux->sinkpad, bevent); diff --git a/gst/mpegpsmux/mpegpsmux.c b/gst/mpegpsmux/mpegpsmux.c index 9398e7a1a..d74fe9a40 100644 --- a/gst/mpegpsmux/mpegpsmux.c +++ b/gst/mpegpsmux/mpegpsmux.c @@ -516,7 +516,7 @@ mpegpsmux_collected (GstCollectPads * pads, MpegPsMux * mux) if (psmux_write_end_code (mux->psmux)) { GST_WARNING_OBJECT (mux, "Writing MPEG PS Program end code failed."); } - gst_pad_push_event (mux->srcpad, gst_event_new_eos ()); + gst_pad_push_event (mux->srcpad, gst_event_eos_new ()); } return ret; diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index ae76dc59e..25993d5f0 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -1194,7 +1194,7 @@ mpegts_base_sink_event (GstPad * pad, GstEvent * event) switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEGMENT: { - gst_event_copy_segment (event, &base->segment); + gst_event_segment_copy (event, &base->segment); gst_event_unref (event); @@ -1415,12 +1415,12 @@ error: GST_DEBUG_OBJECT (base, "Pausing task, reason %s", reason); if (ret == GST_FLOW_UNEXPECTED) - GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, gst_event_new_eos ()); + GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, gst_event_eos_new ()); else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) { GST_ELEMENT_ERROR (base, STREAM, FAILED, (_("Internal data stream error.")), ("stream stopped, reason %s", reason)); - GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, gst_event_new_eos ()); + GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, gst_event_eos_new ()); } gst_pad_pause_task (base->sinkpad); } @@ -1442,7 +1442,7 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad, gchar *pad_name; guint16 pid = 0; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME) @@ -1481,9 +1481,9 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad, base->mode = BASE_MODE_SEEKING; if (flush) { GST_DEBUG_OBJECT (base, "sending flush start"); - gst_pad_push_event (base->sinkpad, gst_event_new_flush_start ()); + gst_pad_push_event (base->sinkpad, gst_event_flush_start_new ()); GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, - gst_event_new_flush_start ()); + gst_event_flush_start_new ()); } else gst_pad_pause_task (base->sinkpad); /* wait for streaming to finish */ @@ -1492,7 +1492,7 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad, if (flush) { /* send a FLUSH_STOP for the sinkpad, since we need data for seeking */ GST_DEBUG_OBJECT (base, "sending flush stop"); - gst_pad_push_event (base->sinkpad, gst_event_new_flush_stop (TRUE)); + gst_pad_push_event (base->sinkpad, gst_event_flush_stop_new (TRUE)); } if (flags & (GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_SKIP)) { @@ -1518,9 +1518,9 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad, if (flush) { /* if we sent a FLUSH_START, we now send a FLUSH_STOP */ GST_DEBUG_OBJECT (base, "sending flush stop"); - //gst_pad_push_event (base->sinkpad, gst_event_new_flush_stop ()); + //gst_pad_push_event (base->sinkpad, gst_event_flush_stop_new ()); GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, - gst_event_new_flush_stop (TRUE)); + gst_event_flush_stop_new (TRUE)); } //else done: diff --git a/gst/mpegtsdemux/mpegtsparse.c b/gst/mpegtsdemux/mpegtsparse.c index 7b61a5dec..ba1799e33 100644 --- a/gst/mpegtsdemux/mpegtsparse.c +++ b/gst/mpegtsdemux/mpegtsparse.c @@ -506,7 +506,7 @@ 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_tag_new (bp->tags)); bp->tags = NULL; } } else { diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index d61742913..f66cd7b83 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -800,7 +800,7 @@ gst_ts_demux_do_seek (MpegTSBase * base, GstEvent * event, guint16 pid) GstSegment seeksegment; gboolean update; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME) { @@ -1235,7 +1235,7 @@ gst_ts_demux_stream_removed (MpegTSBase * base, MpegTSBaseStream * bstream) demux->need_newsegment = need_newsegment; GST_DEBUG_OBJECT (stream->pad, "Pushing out EOS"); - gst_pad_push_event (stream->pad, gst_event_new_eos ()); + gst_pad_push_event (stream->pad, gst_event_eos_new ()); GST_DEBUG_OBJECT (stream->pad, "Deactivating and removing pad"); gst_pad_set_active (stream->pad, FALSE); gst_element_remove_pad (GST_ELEMENT_CAST (base), stream->pad); @@ -2156,7 +2156,7 @@ calculate_and_push_newsegment (GstTSDemux * demux, TSDemuxStream * stream) GST_TIME_FORMAT " time: %" GST_TIME_FORMAT, GST_TIME_ARGS (start), GST_TIME_ARGS (stop), GST_TIME_ARGS (position)); - newsegmentevent = gst_event_new_segment (&demux->segment); + newsegmentevent = gst_event_segment_new (&demux->segment); push_event ((MpegTSBase *) demux, newsegmentevent); diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c index 5e942a002..0add8ba37 100644 --- a/gst/mpegtsmux/mpegtsmux.c +++ b/gst/mpegtsmux/mpegtsmux.c @@ -731,7 +731,7 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux) } else { /* FIXME: Drain all remaining streams */ /* At EOS */ - gst_pad_push_event (mux->srcpad, gst_event_new_eos ()); + gst_pad_push_event (mux->srcpad, gst_event_eos_new ()); } return ret; diff --git a/gst/mve/gstmvemux.c b/gst/mve/gstmvemux.c index e6c2fcb6c..6b7f04704 100644 --- a/gst/mve/gstmvemux.c +++ b/gst/mve/gstmvemux.c @@ -1123,7 +1123,7 @@ gst_mve_mux_chain (GstPad * sinkpad, GstBuffer * inbuf) if (G_UNLIKELY ((mvemux->state == MVE_MUX_STATE_EOS) && (ret == GST_FLOW_OK))) { ret = gst_mve_mux_end_movie (mvemux); - gst_pad_push_event (mvemux->source, gst_event_new_eos ()); + gst_pad_push_event (mvemux->source, gst_event_eos_new ()); } done: diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 496ee38f7..03500bfef 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -611,11 +611,11 @@ gst_mxf_demux_choose_package (GstMXFDemux * demux) for (i = 0; i < demux->preface->content_storage->n_packages; i++) { if (demux->preface->content_storage->packages[i] && - MXF_IS_METADATA_MATERIAL_PACKAGE (demux->preface-> - content_storage->packages[i])) { + MXF_IS_METADATA_MATERIAL_PACKAGE (demux->preface->content_storage-> + packages[i])) { ret = - MXF_METADATA_GENERIC_PACKAGE (demux->preface-> - content_storage->packages[i]); + MXF_METADATA_GENERIC_PACKAGE (demux->preface->content_storage-> + packages[i]); break; } } @@ -775,8 +775,8 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux) essence_container); if (track->parent.type == MXF_METADATA_TRACK_PICTURE_ESSENCE) { - if (MXF_IS_METADATA_GENERIC_PICTURE_ESSENCE_DESCRIPTOR (track-> - parent.descriptor[0])) + if (MXF_IS_METADATA_GENERIC_PICTURE_ESSENCE_DESCRIPTOR (track->parent. + descriptor[0])) mxf_ul_to_string (&MXF_METADATA_GENERIC_PICTURE_ESSENCE_DESCRIPTOR (track->parent.descriptor[0])->picture_essence_coding, essence_compression); @@ -785,8 +785,8 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux) g_strdup_printf ("video/x-mxf-%s-%s", essence_container, essence_compression); } else if (track->parent.type == MXF_METADATA_TRACK_SOUND_ESSENCE) { - if (MXF_IS_METADATA_GENERIC_SOUND_ESSENCE_DESCRIPTOR (track-> - parent.descriptor[0])) + if (MXF_IS_METADATA_GENERIC_SOUND_ESSENCE_DESCRIPTOR (track->parent. + descriptor[0])) mxf_ul_to_string (&MXF_METADATA_GENERIC_SOUND_ESSENCE_DESCRIPTOR (track->parent.descriptor[0])->sound_essence_compression, essence_compression); @@ -795,8 +795,8 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux) g_strdup_printf ("audio/x-mxf-%s-%s", essence_container, essence_compression); } else if (track->parent.type == MXF_METADATA_TRACK_DATA_ESSENCE) { - if (MXF_IS_METADATA_GENERIC_DATA_ESSENCE_DESCRIPTOR (track-> - parent.descriptor[0])) + if (MXF_IS_METADATA_GENERIC_DATA_ESSENCE_DESCRIPTOR (track->parent. + descriptor[0])) mxf_ul_to_string (&MXF_METADATA_GENERIC_DATA_ESSENCE_DESCRIPTOR (track->parent.descriptor[0])->data_essence_coding, essence_compression); @@ -1421,8 +1421,8 @@ gst_mxf_demux_pad_set_component (GstMXFDemux * demux, GstMXFDemuxPad * pad, pad->current_component_index); pad->current_component = - MXF_METADATA_SOURCE_CLIP (sequence-> - structural_components[pad->current_component_index]); + MXF_METADATA_SOURCE_CLIP (sequence->structural_components[pad-> + current_component_index]); if (pad->current_component == NULL) { GST_ERROR_OBJECT (demux, "No such structural component"); return GST_FLOW_ERROR; @@ -1430,8 +1430,8 @@ gst_mxf_demux_pad_set_component (GstMXFDemux * demux, GstMXFDemuxPad * pad, if (!pad->current_component->source_package || !pad->current_component->source_package->top_level - || !MXF_METADATA_GENERIC_PACKAGE (pad-> - current_component->source_package)->tracks) { + || !MXF_METADATA_GENERIC_PACKAGE (pad->current_component-> + source_package)->tracks) { GST_ERROR_OBJECT (demux, "Invalid component"); return GST_FLOW_ERROR; } @@ -1807,7 +1807,7 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux, GST_DEBUG_OBJECT (demux, "EOS for track"); pad->eos = TRUE; - e = gst_event_new_eos (); + e = gst_event_eos_new (); gst_event_set_seqnum (e, demux->seqnum); gst_pad_push_event (GST_PAD_CAST (pad), e); ret = GST_FLOW_OK; @@ -2504,7 +2504,7 @@ from_index: GstEvent *e; p->eos = TRUE; - e = gst_event_new_eos (); + e = gst_event_eos_new (); gst_event_set_seqnum (e, demux->seqnum); gst_pad_push_event (GST_PAD_CAST (p), e); } @@ -2584,7 +2584,7 @@ gst_mxf_demux_pull_and_handle_klv_packet (GstMXFDemux * demux) GstEvent *e; p->eos = TRUE; - e = gst_event_new_eos (); + e = gst_event_eos_new (); gst_event_set_seqnum (e, demux->seqnum); gst_pad_push_event (GST_PAD_CAST (p), e); } @@ -2604,7 +2604,7 @@ gst_mxf_demux_pull_and_handle_klv_packet (GstMXFDemux * demux) GST_ERROR_OBJECT (demux, "Failed to find offset for essence track"); p->eos = TRUE; - e = gst_event_new_eos (); + e = gst_event_eos_new (); gst_event_set_seqnum (e, demux->seqnum); gst_pad_push_event (GST_PAD_CAST (p), e); continue; @@ -2655,7 +2655,7 @@ gst_mxf_demux_pull_and_handle_klv_packet (GstMXFDemux * demux) GST_WARNING_OBJECT (demux, "Failed to find offset for late essence track"); earliest->eos = TRUE; - e = gst_event_new_eos (); + e = gst_event_eos_new (); gst_event_set_seqnum (e, demux->seqnum); gst_pad_push_event (GST_PAD_CAST (earliest), e); continue; @@ -2783,7 +2783,7 @@ pause: /* normal playback, send EOS to all linked pads */ GST_LOG_OBJECT (demux, "Sending EOS, at end of stream"); - e = gst_event_new_eos (); + e = gst_event_eos_new (); gst_event_set_seqnum (e, demux->seqnum); if (!gst_mxf_demux_push_src_event (demux, e)) { GST_WARNING_OBJECT (demux, "failed pushing EOS on streams"); @@ -2795,7 +2795,7 @@ pause: GST_ELEMENT_ERROR (demux, STREAM, FAILED, ("Internal data stream error."), ("stream stopped, reason %s", reason)); - e = gst_event_new_eos (); + e = gst_event_eos_new (); gst_event_set_seqnum (e, demux->seqnum); gst_mxf_demux_push_src_event (demux, e); } @@ -2998,8 +2998,8 @@ gst_mxf_demux_pad_set_last_stop (GstMXFDemux * demux, GstMXFDemuxPad * p, for (i = 0; i < p->material_track->parent.sequence->n_structural_components; i++) { clip = - MXF_METADATA_SOURCE_CLIP (p->material_track->parent. - sequence->structural_components[i]); + MXF_METADATA_SOURCE_CLIP (p->material_track->parent.sequence-> + structural_components[i]); if (clip->parent.duration <= 0) break; @@ -3067,7 +3067,7 @@ gst_mxf_demux_seek_push (GstMXFDemux * demux, GstEvent * event) guint i; guint32 seqnum; - gst_event_parse_seek (event, &rate, &format, &flags, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); seqnum = gst_event_get_seqnum (event); @@ -3077,8 +3077,8 @@ gst_mxf_demux_seek_push (GstMXFDemux * demux, GstEvent * event) if (format != GST_FORMAT_TIME) goto wrong_format; - flush = !!(flags & GST_SEEK_FLAG_FLUSH); - keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT); + flush = ! !(flags & GST_SEEK_FLAG_FLUSH); + keyframe = ! !(flags & GST_SEEK_FLAG_KEY_UNIT); /* Work on a copy until we are sure the seek succeeded. */ memcpy (&seeksegment, &demux->segment, sizeof (GstSegment)); @@ -3130,7 +3130,7 @@ gst_mxf_demux_seek_push (GstMXFDemux * demux, GstEvent * event) GST_DEBUG_OBJECT (demux, "generating an upstream seek at position %" G_GUINT64_FORMAT, new_offset); - e = gst_event_new_seek (seeksegment.rate, GST_FORMAT_BYTES, + e = gst_event_seek_new (seeksegment.rate, GST_FORMAT_BYTES, seeksegment.flags | GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, new_offset, GST_SEEK_TYPE_NONE, 0); gst_event_set_seqnum (e, seqnum); @@ -3200,7 +3200,7 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event) gboolean ret = TRUE; guint32 seqnum; - gst_event_parse_seek (event, &rate, &format, &flags, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); seqnum = gst_event_get_seqnum (event); @@ -3210,15 +3210,15 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event) if (rate <= 0.0) goto wrong_rate; - flush = !!(flags & GST_SEEK_FLAG_FLUSH); - keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT); + flush = ! !(flags & GST_SEEK_FLAG_FLUSH); + keyframe = ! !(flags & GST_SEEK_FLAG_KEY_UNIT); if (flush) { GstEvent *e; /* Flush start up and downstream to make sure data flow and loops are idle */ - e = gst_event_new_flush_start (); + e = gst_event_flush_start_new (); gst_event_set_seqnum (e, seqnum); gst_mxf_demux_push_src_event (demux, gst_event_ref (e)); gst_pad_push_event (demux->sinkpad, e); @@ -3234,7 +3234,7 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event) GstEvent *e; /* Stop flushing upstream we need to pull */ - e = gst_event_new_flush_stop (); + e = gst_event_flush_stop_new (); gst_event_set_seqnum (e, seqnum); gst_pad_push_event (demux->sinkpad, e); } @@ -3312,7 +3312,7 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event) GstEvent *e; /* Stop flushing, the sinks are at time 0 now */ - e = gst_event_new_flush_stop (); + e = gst_event_flush_stop_new (); gst_event_set_seqnum (e, seqnum); gst_mxf_demux_push_src_event (demux, e); } else { @@ -3636,7 +3636,7 @@ gst_mxf_demux_sink_event (GstPad * pad, GstEvent * event) && p->current_essence_track_position >= p->current_essence_track->duration) { p->eos = TRUE; - gst_pad_push_event (GST_PAD_CAST (p), gst_event_new_eos ()); + gst_pad_push_event (GST_PAD_CAST (p), gst_event_eos_new ()); } } @@ -3652,12 +3652,12 @@ gst_mxf_demux_sink_event (GstPad * pad, GstEvent * event) if (offset == -1) { GST_ERROR_OBJECT (demux, "Failed to find offset for essence track"); p->eos = TRUE; - gst_pad_push_event (GST_PAD_CAST (p), gst_event_new_eos ()); + gst_pad_push_event (GST_PAD_CAST (p), gst_event_eos_new ()); continue; } if (gst_pad_push_event (demux->sinkpad, - gst_event_new_seek (demux->segment.rate, GST_FORMAT_BYTES, + gst_event_seek_new (demux->segment.rate, GST_FORMAT_BYTES, demux->segment.flags | GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, offset + demux->run_in, GST_SEEK_TYPE_NONE, 0))) { diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c index 6b0e79556..c2f39dc20 100644 --- a/gst/mxf/mxfmux.c +++ b/gst/mxf/mxfmux.c @@ -1454,7 +1454,7 @@ gst_mxf_mux_collected (GstCollectPads * pads, gpointer user_data) GST_DEBUG_OBJECT (mux, "Handling EOS"); gst_mxf_mux_handle_eos (mux); - gst_pad_push_event (mux->srcpad, gst_event_new_eos ()); + gst_pad_push_event (mux->srcpad, gst_event_eos_new ()); mux->state = GST_MXF_MUX_STATE_EOS; return GST_FLOW_UNEXPECTED; } @@ -1464,7 +1464,7 @@ gst_mxf_mux_collected (GstCollectPads * pads, gpointer user_data) error: { mux->state = GST_MXF_MUX_STATE_ERROR; - gst_pad_push_event (mux->srcpad, gst_event_new_eos ()); + gst_pad_push_event (mux->srcpad, gst_event_eos_new ()); return ret; } } diff --git a/gst/nsf/gstnsf.c b/gst/nsf/gstnsf.c index 63ab00141..9398053c8 100644 --- a/gst/nsf/gstnsf.c +++ b/gst/nsf/gstnsf.c @@ -342,12 +342,12 @@ pause: if (ret == GST_FLOW_UNEXPECTED) { /* perform EOS logic, FIXME, segment seek? */ - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); } else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) { /* for fatal errors we post an error message */ GST_ELEMENT_ERROR (nsfdec, STREAM, FAILED, (NULL), ("streaming task paused, reason %s", reason)); - gst_pad_push_event (pad, gst_event_new_eos ()); + gst_pad_push_event (pad, gst_event_eos_new ()); } goto done; } diff --git a/gst/nuvdemux/gstnuvdemux.c b/gst/nuvdemux/gstnuvdemux.c index 3401c8157..6c3ec05dc 100644 --- a/gst/nuvdemux/gstnuvdemux.c +++ b/gst/nuvdemux/gstnuvdemux.c @@ -748,9 +748,9 @@ gst_nuv_demux_send_eos (GstNuvDemux * nuv) gst_message_new_segment_done (GST_OBJECT (nuv), GST_FORMAT_TIME, -1)); if (nuv->src_video_pad) - gst_pad_push_event (nuv->src_video_pad, gst_event_new_eos ()); + gst_pad_push_event (nuv->src_video_pad, gst_event_eos_new ()); if (nuv->src_audio_pad) - gst_pad_push_event (nuv->src_audio_pad, gst_event_new_eos ()); + gst_pad_push_event (nuv->src_audio_pad, gst_event_eos_new ()); } static GstFlowReturn diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c index 59a3093f8..9fecb23ea 100644 --- a/gst/rawparse/gstrawparse.c +++ b/gst/rawparse/gstrawparse.c @@ -420,13 +420,13 @@ pause: rp->segment.format, stop)); } else { GST_LOG_OBJECT (rp, "Sending EOS, at end of stream"); - gst_pad_push_event (rp->srcpad, gst_event_new_eos ()); + gst_pad_push_event (rp->srcpad, gst_event_eos_new ()); } } else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) { GST_ELEMENT_ERROR (rp, STREAM, FAILED, ("Internal data stream error."), ("stream stopped, reason %s", reason)); - gst_pad_push_event (rp->srcpad, gst_event_new_eos ()); + gst_pad_push_event (rp->srcpad, gst_event_eos_new ()); } return; } @@ -683,7 +683,7 @@ gst_raw_parse_handle_seek_push (GstRawParse * rp, GstEvent * event) gint64 start, stop; gboolean ret = FALSE; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); /* can't seek backwards yet */ @@ -707,7 +707,7 @@ gst_raw_parse_handle_seek_push (GstRawParse * rp, GstEvent * event) stop += rp->framesize - stop % rp->framesize; event = - gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type, + gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, start_type, start, stop_type, stop); ret = gst_pad_push_event (rp->sinkpad, event); @@ -742,7 +742,7 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event) GstSegment seeksegment; if (event) { - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); /* convert input offsets to time */ @@ -767,8 +767,8 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event) * can acquire the STREAM_LOCK. */ if (flush) { GST_LOG_OBJECT (rp, "flushing"); - gst_pad_push_event (rp->sinkpad, gst_event_new_flush_start ()); - gst_pad_push_event (rp->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (rp->sinkpad, gst_event_flush_start_new ()); + gst_pad_push_event (rp->srcpad, gst_event_flush_start_new ()); } else { GST_LOG_OBJECT (rp, "pause task"); gst_pad_pause_task (rp->sinkpad); @@ -798,8 +798,8 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event) /* prepare for streaming */ if (flush) { GST_LOG_OBJECT (rp, "stop flush"); - gst_pad_push_event (rp->sinkpad, gst_event_new_flush_stop ()); - gst_pad_push_event (rp->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (rp->sinkpad, gst_event_flush_stop_new ()); + gst_pad_push_event (rp->srcpad, gst_event_flush_stop_new ()); } else if (ret && rp->running) { /* we are running the current segment and doing a non-flushing seek, * close the segment first based on the last_stop. */ diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index e8032fadb..ca3c0a09a 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -882,7 +882,7 @@ gst_sdp_demux_do_stream_eos (GstSDPDemux * demux, guint session) goto was_eos; stream->eos = TRUE; - gst_sdp_demux_stream_push_event (demux, stream, gst_event_new_eos ()); + gst_sdp_demux_stream_push_event (demux, stream, gst_event_eos_new ()); return; /* ERRORS */ diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c index 323181fd9..9f2a017aa 100644 --- a/gst/speed/gstspeed.c +++ b/gst/speed/gstspeed.c @@ -220,7 +220,7 @@ speed_src_event (GstPad * pad, GstEvent * event) GstSeekType start_type, stop_type; gint64 start, stop; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); gst_event_unref (event); @@ -237,7 +237,7 @@ speed_src_event (GstPad * pad, GstEvent * event) stop *= filter->speed; } - event = gst_event_new_seek (rate, format, flags, start_type, start, + event = gst_event_seek_new (rate, format, flags, start_type, start, stop_type, stop); GST_LOG ("sending seek event: %" GST_PTR_FORMAT, event->structure); diff --git a/gst/tta/gstttaparse.c b/gst/tta/gstttaparse.c index 069408ab6..e0386eb53 100644 --- a/gst/tta/gstttaparse.c +++ b/gst/tta/gstttaparse.c @@ -174,13 +174,13 @@ gst_tta_parse_src_event (GstPad * pad, GstEvent * event) GstSeekType start_type, stop_type; gint64 start, stop; - gst_event_parse_seek (event, &rate, &format, &flags, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format == GST_FORMAT_TIME) { if (flags & GST_SEEK_FLAG_FLUSH) { - gst_pad_push_event (ttaparse->srcpad, gst_event_new_flush_start ()); - gst_pad_push_event (ttaparse->sinkpad, gst_event_new_flush_start ()); + gst_pad_push_event (ttaparse->srcpad, gst_event_flush_start_new ()); + gst_pad_push_event (ttaparse->sinkpad, gst_event_flush_start_new ()); } else { gst_pad_pause_task (ttaparse->sinkpad); } @@ -202,8 +202,8 @@ gst_tta_parse_src_event (GstPad * pad, GstEvent * event) res = TRUE; if (flags & GST_SEEK_FLAG_FLUSH) { - gst_pad_push_event (ttaparse->srcpad, gst_event_new_flush_stop ()); - gst_pad_push_event (ttaparse->sinkpad, gst_event_new_flush_stop ()); + gst_pad_push_event (ttaparse->srcpad, gst_event_flush_stop_new ()); + gst_pad_push_event (ttaparse->sinkpad, gst_event_flush_stop_new ()); } gst_pad_push_event (ttaparse->srcpad, gst_event_new_new_segment (FALSE, @@ -431,7 +431,7 @@ gst_tta_parse_stream_data (GstTtaParse * ttaparse) found_eos: { GST_DEBUG ("found EOS"); - gst_pad_push_event (ttaparse->srcpad, gst_event_new_eos ()); + gst_pad_push_event (ttaparse->srcpad, gst_event_eos_new ()); return GST_FLOW_WRONG_STATE; } pull_error: @@ -463,12 +463,12 @@ pause: GST_LOG_OBJECT (ttaparse, "pausing task, %s", gst_flow_get_name (ret)); gst_pad_pause_task (ttaparse->sinkpad); if (ret == GST_FLOW_UNEXPECTED) { - gst_pad_push_event (ttaparse->srcpad, gst_event_new_eos ()); + gst_pad_push_event (ttaparse->srcpad, gst_event_eos_new ()); } else if (ret < GST_FLOW_UNEXPECTED || ret == GST_FLOW_NOT_LINKED) { GST_ELEMENT_ERROR (ttaparse, STREAM, FAILED, ("Internal data stream error."), ("streaming stopped, reason %s", gst_flow_get_name (ret))); - gst_pad_push_event (ttaparse->srcpad, gst_event_new_eos ()); + gst_pad_push_event (ttaparse->srcpad, gst_event_eos_new ()); } } diff --git a/gst/videomeasure/gstvideomeasure_ssim.c b/gst/videomeasure/gstvideomeasure_ssim.c index 948787a11..0281fca60 100644 --- a/gst/videomeasure/gstvideomeasure_ssim.c +++ b/gst/videomeasure/gstvideomeasure_ssim.c @@ -895,7 +895,7 @@ gst_ssim_src_event (GstPad * pad, GstEvent * event) gint64 cur; /* parse the seek parameters */ - gst_event_parse_seek (event, &ssim->segment_rate, NULL, &flags, &curtype, + gst_event_seek_parse (event, &ssim->segment_rate, NULL, &flags, &curtype, &cur, NULL, NULL); /* check if we are flushing */ @@ -905,7 +905,7 @@ gst_ssim_src_event (GstPad * pad, GstEvent * event) /* flushing seek, start flush downstream, the flush will be done * when all pads received a FLUSH_STOP. */ - gst_pad_push_event (pad, gst_event_new_flush_start ()); + gst_pad_push_event (pad, gst_event_flush_start_new ()); } /* now wait for the collected to be finished and mark a new * segment */ @@ -1627,7 +1627,7 @@ eos: for (i = 0; i < ssim->src->len; i++) { GstSSimOutputContext *c = (GstSSimOutputContext *) g_ptr_array_index (ssim->src, i); - gst_pad_push_event (c->pad, gst_event_new_eos ()); + gst_pad_push_event (c->pad, gst_event_eos_new ()); } return GST_FLOW_UNEXPECTED; diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c index 4a5633f3b..0fa75ce81 100644 --- a/gst/videoparsers/gsth263parse.c +++ b/gst/videoparsers/gsth263parse.c @@ -135,7 +135,7 @@ gst_h263_parse_sink_event (GstBaseParse * parse, GstEvent * event) { GstTagList *taglist; - gst_event_parse_tag (event, &taglist); + gst_event_tag_parse (event, &taglist); if (gst_tag_list_get_uint (taglist, GST_TAG_BITRATE, &h263parse->bitrate)) GST_DEBUG_OBJECT (h263parse, "got bitrate tag: %u", h263parse->bitrate); diff --git a/gst/y4m/gsty4mdec.c b/gst/y4m/gsty4mdec.c index c61e34ebc..63d517832 100644 --- a/gst/y4m/gsty4mdec.c +++ b/gst/y4m/gsty4mdec.c @@ -486,7 +486,7 @@ gst_y4m_dec_chain (GstPad * pad, GstBuffer * buffer) seg.start = start; seg.stop = stop; seg.time = time; - event = gst_event_new_segment (&seg); + event = gst_event_segment_new (&seg); gst_pad_push_event (y4mdec->srcpad, event); //gst_event_unref (event); @@ -570,7 +570,7 @@ gst_y4m_dec_sink_event (GstPad * pad, GstEvent * event) { GstSegment seg; - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); GST_DEBUG ("segment: %" GST_SEGMENT_FORMAT, &seg); @@ -616,7 +616,7 @@ gst_y4m_dec_src_event (GstPad * pad, GstEvent * event) int framenum; guint64 byte; - gst_event_parse_seek (event, &rate, &format, &flags, &start_type, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME) { @@ -631,7 +631,7 @@ gst_y4m_dec_src_event (GstPad * pad, GstEvent * event) GST_DEBUG ("offset %d", (int) byte); gst_event_unref (event); - event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, + event = gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, start_type, byte, stop_type, -1); res = gst_pad_push_event (y4mdec->sinkpad, event); |