ext/speex/gstspeexdec.c: newsegment API fix.

Original commit message from CVS:
* ext/speex/gstspeexdec.c: (speex_dec_event), (speex_dec_chain):
newsegment API fix.
This commit is contained in:
Wim Taymans 2005-10-11 17:38:29 +00:00
parent b0e9b53bb7
commit f3add756e0
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2005-10-11 Wim Taymans <wim@fluendo.com>
* ext/speex/gstspeexdec.c: (speex_dec_event), (speex_dec_chain):
newsegment API fix.
2005-10-11 Wim Taymans <wim@fluendo.com>
* ext/dv/gstdvdemux.c: (gst_dvdemux_handle_sink_event),

View file

@ -279,7 +279,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, &fmt, &value, NULL, NULL);
gst_event_parse_newsegment (event, NULL, NULL, &fmt, &value, NULL, NULL);
if (fmt == GST_FORMAT_DEFAULT) {
dec->samples_out = value;
GST_DEBUG_OBJECT (dec,
@ -296,7 +296,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 (1.0, GST_FORMAT_TIME,
gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
0, GST_CLOCK_TIME_NONE, 0));
} else {
GstFormat time_format = GST_FORMAT_TIME;
@ -306,7 +306,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 (1.0, GST_FORMAT_TIME,
gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
time, GST_CLOCK_TIME_NONE, 0));
} else {
GST_ERROR_OBJECT (dec,
@ -389,7 +389,7 @@ speex_dec_chain (GstPad * pad, GstBuffer * buf)
}
gst_caps_unref (caps);
gst_pad_push_event (dec->srcpad,
gst_event_new_newsegment (1.0, GST_FORMAT_TIME,
gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
0, GST_CLOCK_TIME_NONE, 0));
} else if (dec->packetno == 1) {
gchar *encoder = NULL;