mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-05 23:59:55 +00:00
ext/dv/gstdvdemux.c (gst_dvdemux_handle_sink_event) (gst_dvdemux_demux_frame) ext/flac/gstflacdec.c (gst_flacdec_writ...
Original commit message from CVS: 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.
This commit is contained in:
parent
f8456ac0f3
commit
bdeae7cfcd
17 changed files with 50 additions and 25 deletions
25
ChangeLog
25
ChangeLog
|
@ -1,3 +1,28 @@
|
|||
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),
|
||||
|
|
|
@ -607,7 +607,7 @@ gst_dvdemux_handle_sink_event (GstPad * pad, GstEvent * event)
|
|||
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 */
|
||||
|
@ -885,7 +885,7 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, const guint8 * data)
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
|
@ -437,7 +437,7 @@ gst_flacdec_write (const FLAC__SeekableStreamDecoder * decoder,
|
|||
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))
|
||||
|
|
|
@ -504,7 +504,7 @@ gst_flacenc_seek_callback (const FLAC__SeekableStreamEncoder * encoder,
|
|||
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))) {
|
||||
|
@ -601,7 +601,7 @@ gst_flacenc_sink_event (GstPad * pad, GstEvent * event)
|
|||
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;
|
||||
|
@ -612,7 +612,7 @@ gst_flacenc_sink_event (GstPad * pad, GstEvent * event)
|
|||
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);
|
||||
|
|
|
@ -89,7 +89,7 @@ static void
|
|||
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);
|
||||
|
|
|
@ -89,7 +89,7 @@ static void
|
|||
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);
|
||||
|
|
|
@ -353,7 +353,7 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec)
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -300,7 +300,7 @@ speex_dec_event (GstPad * pad, GstEvent * event)
|
|||
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,
|
||||
|
@ -317,7 +317,7 @@ speex_dec_event (GstPad * pad, GstEvent * event)
|
|||
("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;
|
||||
|
@ -327,7 +327,7 @@ speex_dec_event (GstPad * pad, GstEvent * event)
|
|||
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,
|
||||
|
@ -410,7 +410,7 @@ speex_dec_chain (GstPad * pad, GstBuffer * buf)
|
|||
}
|
||||
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;
|
||||
|
|
|
@ -363,7 +363,7 @@ Samples :
|
|||
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);
|
||||
|
|
|
@ -88,7 +88,7 @@ static void
|
|||
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);
|
||||
|
|
|
@ -88,7 +88,7 @@ static void
|
|||
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);
|
||||
|
|
|
@ -1957,7 +1957,7 @@ done:
|
|||
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);
|
||||
|
||||
|
@ -2024,7 +2024,7 @@ gst_avi_demux_handle_seek (GstAviDemux * avi, gboolean update)
|
|||
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);
|
||||
|
||||
|
|
|
@ -291,7 +291,7 @@ gst_goom_event (GstPad * pad, GstEvent * event)
|
|||
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;
|
||||
|
|
|
@ -384,7 +384,7 @@ gst_ebml_write_seek (GstEbmlWrite * ebml, guint64 pos)
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
|
@ -1165,7 +1165,7 @@ gst_matroska_demux_handle_seek_event (GstMatroskaDemux * demux,
|
|||
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);
|
||||
|
@ -2728,7 +2728,7 @@ gst_matroska_demux_loop_stream_parse_id (GstMatroskaDemux * 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));
|
||||
|
||||
|
|
|
@ -265,7 +265,7 @@ gst_wavenc_stop_file (GstWavEnc * wavenc)
|
|||
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);
|
||||
|
|
|
@ -734,7 +734,7 @@ gst_wavparse_handle_seek (GstWavParse * wav, gboolean update)
|
|||
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)
|
||||
|
@ -858,7 +858,7 @@ gst_wavparse_stream_headers (GstWavParse * wav)
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue