ext/a52dec/gsta52dec.c (gst_a52dec_sink_event) ext/mad/gstid3tag.c (gst_id3_tag_sink_event) ext/mad/gstmad.c (gst_mad...

Original commit message from CVS:
2005-11-22  Andy Wingo  <wingo@pobox.com>

* ext/a52dec/gsta52dec.c (gst_a52dec_sink_event)
* ext/mad/gstid3tag.c (gst_id3_tag_sink_event)
* ext/mad/gstmad.c (gst_mad_chain)
* gst/mpegaudioparse/gstmpegaudioparse.c
(gst_mp3parse_sink_event)
* gst/mpegstream/gstdvddemux.c (gst_dvd_demux_handle_dvd_event)
* gst/mpegstream/gstmpegparse.c (gst_mpeg_parse_handle_discont)
(gst_mpeg_parse_send_discont, gst_mpeg_parse_pad_added)
* gst/realmedia/rmdemux.c (gst_rmdemux_perform_seek)
(gst_rmdemux_chain, gst_rmdemux_add_stream): Run update-funcnames.
This commit is contained in:
Andy Wingo 2005-11-22 11:55:32 +00:00
parent a1e46d712c
commit d731d22791
8 changed files with 29 additions and 14 deletions

View file

@ -1,3 +1,16 @@
2005-11-22 Andy Wingo <wingo@pobox.com>
* ext/a52dec/gsta52dec.c (gst_a52dec_sink_event)
* ext/mad/gstid3tag.c (gst_id3_tag_sink_event)
* ext/mad/gstmad.c (gst_mad_chain)
* gst/mpegaudioparse/gstmpegaudioparse.c
(gst_mp3parse_sink_event)
* gst/mpegstream/gstdvddemux.c (gst_dvd_demux_handle_dvd_event)
* gst/mpegstream/gstmpegparse.c (gst_mpeg_parse_handle_discont)
(gst_mpeg_parse_send_discont, gst_mpeg_parse_pad_added)
* gst/realmedia/rmdemux.c (gst_rmdemux_perform_seek)
(gst_rmdemux_chain, gst_rmdemux_add_stream): Run update-funcnames.
2005-11-22 Tim-Philipp Müller <tim at centricular dot net> 2005-11-22 Tim-Philipp Müller <tim at centricular dot net>
* ext/mad/Makefile.am: * ext/mad/Makefile.am:

View file

@ -358,7 +358,8 @@ gst_a52dec_sink_event (GstPad * pad, GstEvent * event)
GstFormat format; GstFormat format;
gint64 val; gint64 val;
gst_event_parse_newsegment (event, NULL, NULL, &format, &val, NULL, NULL); gst_event_parse_new_segment (event, NULL, NULL, &format, &val, NULL,
NULL);
if (format != GST_FORMAT_TIME || !GST_CLOCK_TIME_IS_VALID (val)) { if (format != GST_FORMAT_TIME || !GST_CLOCK_TIME_IS_VALID (val)) {
GST_WARNING ("No time in newsegment event %p", event); GST_WARNING ("No time in newsegment event %p", event);
} else { } else {

View file

@ -845,7 +845,7 @@ gst_id3_tag_sink_event (GstPad * pad, GstEvent * event)
GstFormat format = GST_FORMAT_UNDEFINED; GstFormat format = GST_FORMAT_UNDEFINED;
gint64 value, end_value; gint64 value, end_value;
gst_event_parse_newsegment (event, NULL, NULL, &format, &value, gst_event_parse_new_segment (event, NULL, NULL, &format, &value,
&end_value, NULL); &end_value, NULL);
if (format == GST_FORMAT_BYTES || format == GST_FORMAT_DEFAULT) { if (format == GST_FORMAT_BYTES || format == GST_FORMAT_DEFAULT) {
@ -895,14 +895,14 @@ gst_id3_tag_sink_event (GstPad * pad, GstEvent * event)
gdouble rate; gdouble rate;
gint64 value, end_value, base; gint64 value, end_value, base;
gst_event_parse_newsegment (event, NULL, &rate, &format, &value, gst_event_parse_new_segment (event, NULL, &rate, &format, &value,
&end_value, &base); &end_value, &base);
if (format == GST_FORMAT_BYTES || format == GST_FORMAT_DEFAULT) { if (format == GST_FORMAT_BYTES || format == GST_FORMAT_DEFAULT) {
if (value > tag->v2tag_size) { if (value > tag->v2tag_size) {
value -= tag->v2tag_size; value -= tag->v2tag_size;
gst_event_unref (event); gst_event_unref (event);
event = event =
gst_event_new_newsegment (FALSE, rate, format, value, gst_event_new_new_segment (FALSE, rate, format, value,
end_value, base); end_value, base);
} }
} }

View file

@ -1505,7 +1505,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
if (do_send_discont) { if (do_send_discont) {
gst_pad_push_event (mad->srcpad, gst_pad_push_event (mad->srcpad,
gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
GST_BUFFER_TIMESTAMP (outbuffer), GST_CLOCK_TIME_NONE, 0)); GST_BUFFER_TIMESTAMP (outbuffer), GST_CLOCK_TIME_NONE, 0));
do_send_discont = FALSE; do_send_discont = FALSE;
} }

View file

@ -293,7 +293,8 @@ gst_mp3parse_sink_event (GstPad * pad, GstEvent * event)
{ {
GstFormat format; GstFormat format;
gst_event_parse_newsegment (event, NULL, NULL, &format, NULL, NULL, NULL); gst_event_parse_new_segment (event, NULL, NULL, &format, NULL, NULL,
NULL);
if (format != GST_FORMAT_TIME) if (format != GST_FORMAT_TIME)
mp3parse->last_ts = 0; mp3parse->last_ts = 0;

View file

@ -479,7 +479,7 @@ gst_dvd_demux_handle_dvd_event (GstDVDDemux * dvd_demux, GstEvent * event)
if (dvd_demux->langcodes) if (dvd_demux->langcodes)
gst_event_unref (dvd_demux->langcodes); gst_event_unref (dvd_demux->langcodes);
PARSE_CLASS (dvd_demux)->handle_discont (mpeg_parse, PARSE_CLASS (dvd_demux)->handle_discont (mpeg_parse,
gst_event_new_newsegment (TRUE, 1.0, GST_FORMAT_UNDEFINED, 0, 0, 0)); gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_UNDEFINED, 0, 0, 0));
/* see what kind of streams we have */ /* see what kind of streams we have */
dvd_demux->langcodes = event; dvd_demux->langcodes = event;

View file

@ -339,7 +339,7 @@ gst_mpeg_parse_handle_discont (GstMPEGParse * mpeg_parse, GstEvent * event)
} }
#endif #endif
gst_event_parse_newsegment (event, NULL, NULL, &format, &time, NULL, NULL); gst_event_parse_new_segment (event, NULL, NULL, &format, &time, NULL, NULL);
if (format == GST_FORMAT_TIME && (GST_CLOCK_TIME_IS_VALID (time))) { if (format == GST_FORMAT_TIME && (GST_CLOCK_TIME_IS_VALID (time))) {
GST_DEBUG_OBJECT (mpeg_parse, "forwarding discontinuity, time: %0.3fs", GST_DEBUG_OBJECT (mpeg_parse, "forwarding discontinuity, time: %0.3fs",
@ -403,7 +403,7 @@ gst_mpeg_parse_send_discont (GstMPEGParse * mpeg_parse, GstClockTime time)
{ {
GstEvent *event; GstEvent *event;
event = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, time, event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, time,
GST_CLOCK_TIME_NONE, (gint64) 0); GST_CLOCK_TIME_NONE, (gint64) 0);
if (CLASS (mpeg_parse)->send_event) if (CLASS (mpeg_parse)->send_event)
@ -434,7 +434,7 @@ gst_mpeg_parse_pad_added (GstElement * element, GstPad * pad)
* packets, including setting base time before defining streams or * packets, including setting base time before defining streams or
* even adding streams halfway a stream. */ * even adding streams halfway a stream. */
if (!mpeg_parse->scr_pending) { if (!mpeg_parse->scr_pending) {
GstEvent *event = gst_event_new_newsegment (FALSE, 1.0, GstEvent *event = gst_event_new_new_segment (FALSE, 1.0,
GST_FORMAT_TIME, GST_FORMAT_TIME,
(guint64) MPEGTIME_TO_GSTTIME (mpeg_parse->current_scr + (guint64) MPEGTIME_TO_GSTTIME (mpeg_parse->current_scr +
mpeg_parse->adjust), mpeg_parse->adjust),

View file

@ -585,7 +585,7 @@ gst_rmdemux_perform_seek (GstRMDemux * rmdemux, gboolean flush)
gst_rmdemux_send_event (rmdemux, gst_event_new_flush_stop ()); gst_rmdemux_send_event (rmdemux, gst_event_new_flush_stop ());
/* create the discont event we are going to send out */ /* create the discont event we are going to send out */
event = gst_event_new_newsegment (FALSE, 1.0, event = gst_event_new_new_segment (FALSE, 1.0,
GST_FORMAT_TIME, (gint64) rmdemux->segment_start, GST_FORMAT_TIME, (gint64) rmdemux->segment_start,
(gint64) rmdemux->segment_stop, rmdemux->segment_start); (gint64) rmdemux->segment_stop, rmdemux->segment_start);
@ -1037,8 +1037,8 @@ gst_rmdemux_chain (GstPad * pad, GstBuffer * buffer)
GST_LOG_OBJECT (rmdemux, "no more pads."); GST_LOG_OBJECT (rmdemux, "no more pads.");
gst_rmdemux_send_event (rmdemux, gst_rmdemux_send_event (rmdemux,
gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, (gint64) 0, gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
(gint64) - 1, 0)); (gint64) 0, (gint64) - 1, 0));
} }
/* The actual header is only 8 bytes */ /* The actual header is only 8 bytes */
@ -1350,7 +1350,7 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream)
gst_element_add_pad (GST_ELEMENT (rmdemux), stream->pad); gst_element_add_pad (GST_ELEMENT (rmdemux), stream->pad);
gst_pad_push_event (stream->pad, gst_pad_push_event (stream->pad,
gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, (gint64) 0, gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, (gint64) 0,
(gint64) - 1, 0)); (gint64) - 1, 0));
/* If there's some extra data then send it as the first packet */ /* If there's some extra data then send it as the first packet */