+2005-11-22 Andy Wingo <wingo@pobox.com>
+
+ * ext/dv/gstdvdemux.c (gst_dvdemux_handle_sink_event)
+ (gst_dvdemux_demux_frame)
+ * ext/flac/gstflacdec.c (gst_flacdec_write)
+ * ext/flac/gstflacenc.c (gst_flacenc_seek_callback)
+ (gst_flacenc_sink_event)
+ * ext/gconf/gstgconfaudiosink.c (gst_gconf_audio_sink_init)
+ * ext/gconf/gstgconfvideosink.c (gst_gconf_video_sink_init)
+ * ext/libpng/gstpngdec.c (gst_pngdec_caps_create_and_set)
+ * ext/speex/gstspeexdec.c (speex_dec_event, speex_dec_chain)
+ * gst/auparse/gstauparse.c (gst_auparse_chain)
+ * gst/autodetect/gstautoaudiosink.c (gst_auto_audio_sink_init)
+ * gst/autodetect/gstautovideosink.c (gst_auto_video_sink_init)
+ * gst/avi/gstavidemux.c (gst_avi_demux_stream_header)
+ (gst_avi_demux_handle_seek)
+ * gst/goom/gstgoom.c (gst_goom_event)
+ * gst/matroska/ebml-write.c (gst_ebml_write_seek)
+ * gst/matroska/matroska-demux.c
+ (gst_matroska_demux_handle_seek_event)
+ (gst_matroska_demux_loop_stream_parse_id)
+ * gst/wavenc/gstwavenc.c (gst_wavenc_stop_file)
+ * gst/wavparse/gstwavparse.c (gst_wavparse_handle_seek)
+ (gst_wavparse_stream_headers): Run update-funcnames.
+
2005-11-22 Edward Hervey <edward@fluendo.com>
* ext/raw1394/gstdv1394src.c: (gst_dv1394src_class_init),
GstFormat format;
/* parse byte start and stop positions */
- gst_event_parse_newsegment (event, NULL, NULL, &format,
+ gst_event_parse_new_segment (event, NULL, NULL, &format,
&dvdemux->start_byte, &dvdemux->stop_byte, NULL);
/* and queue a DISCONT before sending the next set of buffers */
}
}
- event = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
+ event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
dvdemux->start_timestamp, dvdemux->stop_timestamp,
dvdemux->start_timestamp);
gst_dvdemux_send_event (dvdemux, event);
format = GST_FORMAT_TIME;
gst_flacdec_convert_src (flacdec->srcpad, GST_FORMAT_DEFAULT,
flacdec->total_samples, &format, &time);
- newsegment = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, time,
+ newsegment = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, time,
GST_CLOCK_TIME_NONE, 0);
if (!gst_pad_push_event (flacdec->srcpad, newsegment))
if (flacenc->stopped)
return FLAC__STREAM_ENCODER_OK;
- event = gst_event_new_newsegment (TRUE, 1.0, GST_FORMAT_BYTES,
+ event = gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_BYTES,
absolute_byte_offset, GST_BUFFER_OFFSET_NONE, 0);
if ((peerpad = gst_pad_get_peer (flacenc->srcpad))) {
gint64 start, stream_time;
if (flacenc->offset == 0) {
- gst_event_parse_newsegment (event, NULL, NULL, &format, &start, NULL,
+ gst_event_parse_new_segment (event, NULL, NULL, &format, &start, NULL,
&stream_time);
} else {
start = -1;
else
GST_DEBUG ("Not handling newsegment event with non-zero start");
} else {
- GstEvent *e = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_BYTES,
+ GstEvent *e = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_BYTES,
0, -1, 0);
ret = gst_pad_push_event (flacenc->srcpad, e);
gst_gconf_audio_sink_init (GstGConfAudioSink * sink,
GstGConfAudioSinkClass * g_class)
{
- sink->pad = gst_ghost_pad_new_notarget ("sink", GST_PAD_SINK);
+ sink->pad = gst_ghost_pad_new_no_target ("sink", GST_PAD_SINK);
gst_element_add_pad (GST_ELEMENT (sink), sink->pad);
gst_gconf_audio_sink_reset (sink);
gst_gconf_video_sink_init (GstGConfVideoSink * sink,
GstGConfVideoSinkClass * g_class)
{
- sink->pad = gst_ghost_pad_new_notarget ("sink", GST_PAD_SINK);
+ sink->pad = gst_ghost_pad_new_no_target ("sink", GST_PAD_SINK);
gst_element_add_pad (GST_ELEMENT (sink), sink->pad);
gst_gconf_video_sink_reset (sink);
gst_caps_unref (res);
/* Push a newsegment event */
- new_seg = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0);
+ new_seg = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0);
if (GST_IS_EVENT (new_seg)) {
gst_pad_push_event (pngdec->srcpad, new_seg);
}
GST_LOG_OBJECT (dec, "handling event");
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_NEWSEGMENT:
- gst_event_parse_newsegment (event, NULL, NULL, &fmt, &value, NULL, NULL);
+ gst_event_parse_new_segment (event, NULL, NULL, &fmt, &value, NULL, NULL);
if (fmt == GST_FORMAT_DEFAULT) {
dec->samples_out = value;
GST_DEBUG_OBJECT (dec,
("can't handle discont before parsing first 2 packets"));
dec->packetno = 0;
gst_pad_push_event (dec->srcpad,
- gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
+ gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
0, GST_CLOCK_TIME_NONE, 0));
} else {
GstFormat time_format = GST_FORMAT_TIME;
if (speex_dec_convert (dec->srcpad, GST_FORMAT_DEFAULT,
dec->samples_out, &time_format, &time)) {
gst_pad_push_event (dec->srcpad,
- gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
+ gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
time, GST_CLOCK_TIME_NONE, 0));
} else {
GST_ERROR_OBJECT (dec,
}
gst_caps_unref (caps);
gst_pad_push_event (dec->srcpad,
- gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
+ gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
0, GST_CLOCK_TIME_NONE, 0));
} else if (dec->packetno == 1) {
gchar *encoder = NULL;
gst_pad_set_active (auparse->srcpad, TRUE);
gst_pad_set_caps (auparse->srcpad, tempcaps);
- event = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_DEFAULT,
+ event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_DEFAULT,
0, GST_CLOCK_TIME_NONE, 0);
gst_pad_push_event (auparse->srcpad, event);
gst_auto_audio_sink_init (GstAutoAudioSink * sink,
GstAutoAudioSinkClass * g_class)
{
- sink->pad = gst_ghost_pad_new_notarget ("sink", GST_PAD_SINK);
+ sink->pad = gst_ghost_pad_new_no_target ("sink", GST_PAD_SINK);
gst_element_add_pad (GST_ELEMENT (sink), sink->pad);
gst_auto_audio_sink_reset (sink);
gst_auto_video_sink_init (GstAutoVideoSink * sink,
GstAutoVideoSinkClass * g_class)
{
- sink->pad = gst_ghost_pad_new_notarget ("sink", GST_PAD_SINK);
+ sink->pad = gst_ghost_pad_new_no_target ("sink", GST_PAD_SINK);
gst_element_add_pad (GST_ELEMENT (sink), sink->pad);
gst_auto_video_sink_reset (sink);
avi->segment_start = 0;
avi->segment_stop = (gint64) (((gfloat) avi->stream[0].strh->scale) *
avi->stream[0].strh->length / avi->stream[0].strh->rate) * GST_SECOND;
- avi->seek_event = gst_event_new_newsegment
+ avi->seek_event = gst_event_new_new_segment
(FALSE, avi->segment_rate, GST_FORMAT_TIME,
avi->segment_start, avi->segment_stop, avi->segment_start);
else
start_time = avi->segment_start;
- avi->seek_event = gst_event_new_newsegment
+ avi->seek_event = gst_event_new_new_segment
(!update, avi->segment_rate, GST_FORMAT_TIME,
start_time, avi->segment_stop, start_time);
gint64 start = 0, stop = 0;
GstFormat format;
- gst_event_parse_newsegment (event, NULL, NULL, &format, &start, &stop,
+ gst_event_parse_new_segment (event, NULL, NULL, &format, &start, &stop,
NULL);
gst_adapter_clear (goom->adapter);
goom->audio_basetime = start;
}
}
- seek = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_BYTES, pos, -1, 0);
+ seek = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_BYTES, pos, -1, 0);
peer_pad = GST_PAD_PEER (ebml->srcpad);
if (peer_pad) {
gst_pad_send_event (peer_pad, seek);
gst_element_post_message (GST_ELEMENT (demux), msg);
}
- newsegment_event = gst_event_new_newsegment (FALSE, demux->segment_rate,
+ newsegment_event = gst_event_new_new_segment (FALSE, demux->segment_rate,
GST_FORMAT_TIME, entry->time, demux->segment_stop, entry->time);
GST_OBJECT_UNLOCK (demux);
/* FIXME: different streams might have different lengths! */
/* send initial discont */
gst_matroska_demux_send_event (demux,
- gst_event_new_newsegment (FALSE, 1.0,
+ gst_event_new_new_segment (FALSE, 1.0,
GST_FORMAT_TIME, 0,
(demux->duration > 0) ? demux->duration : -1, 0));
GstEvent *event;
GstBuffer *outbuf;
- event = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_BYTES,
+ event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_BYTES,
0, GST_CLOCK_TIME_NONE, 0);
gst_pad_push_event (wavenc->srcpad, event);
wav->offset, wav->dataleft, GST_TIME_ARGS (start_time),
GST_TIME_ARGS (stop_time));
- wav->seek_event = gst_event_new_newsegment (!update, wav->segment_rate,
+ wav->seek_event = gst_event_new_new_segment (!update, wav->segment_rate,
GST_FORMAT_TIME, start_time, stop_time, start_time);
if (flush)
wav->segment_stop = (gint64) GST_SECOND *wav->datasize / wav->bps;
/* Initial discont */
- wav->seek_event = gst_event_new_newsegment (FALSE, 1.0,
+ wav->seek_event = gst_event_new_new_segment (FALSE, 1.0,
GST_FORMAT_TIME,
wav->segment_start, wav->segment_stop, wav->segment_start);