+2005-10-11 Wim Taymans <wim@fluendo.com>
+
+ * 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_mp3parse_chain):
+ * gst/realmedia/rmdemux.c: (gst_rmdemux_perform_seek),
+ (gst_rmdemux_chain), (gst_rmdemux_add_stream):
+ newsegment API update.
+
2005-10-06 Wim Taymans <wim@fluendo.com>
* ext/amrnb/amrnbdec.c:
-Subproject commit 7d175466d3319fe55327608ea1f7a20619ab5634
+Subproject commit 615cf4d4506ef1ffb1f600c434fced1fa26b0f44
GstFormat format = GST_FORMAT_UNDEFINED;
gint64 value, end_value;
- gst_event_parse_newsegment (event, NULL, &format, &value, &end_value,
- NULL);
+ gst_event_parse_newsegment (event, NULL, NULL, &format, &value,
+ &end_value, NULL);
if (format == GST_FORMAT_BYTES || format == GST_FORMAT_DEFAULT) {
if (value !=
gdouble rate;
gint64 value, end_value, base;
- gst_event_parse_newsegment (event, &rate, &format, &value, &end_value,
- &base);
+ gst_event_parse_newsegment (event, NULL, &rate, &format, &value,
+ &end_value, &base);
if (format == GST_FORMAT_BYTES || format == GST_FORMAT_DEFAULT) {
if (value > tag->v2tag_size) {
value -= tag->v2tag_size;
gst_event_unref (event);
event =
- gst_event_new_newsegment (rate, format, value, end_value,
- base);
+ gst_event_new_newsegment (FALSE, rate, format, value,
+ end_value, base);
}
}
if (tag->srcpad)
if (do_send_discont) {
gst_pad_push_event (mad->srcpad,
- gst_event_new_newsegment (1.0, GST_FORMAT_TIME,
+ gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME,
GST_BUFFER_TIMESTAMP (outbuffer), GST_CLOCK_TIME_NONE, 0));
do_send_discont = FALSE;
}
+
result = gst_pad_push (mad->srcpad, outbuffer);
if (result != GST_FLOW_OK) {
goto end;
{
GstFormat format;
- gst_event_parse_newsegment (event, NULL, &format, NULL, NULL, NULL);
+ gst_event_parse_newsegment (event, NULL, NULL, &format, NULL, NULL, NULL);
if (format != GST_FORMAT_TIME)
mp3parse->last_ts = 0;
rmdemux->offset);
return FALSE;
}
-
// TODO: Can we also be seeking to a 'DATA' chunk header? Check this.
// Also, for the case we currently handle, can we check any more? It's pretty
// sucky to not be validating a little more heavily than this...
gst_rmdemux_send_event (rmdemux, gst_event_new_flush_stop ());
/* create the discont event we are going to send out */
- event = gst_event_new_newsegment (1.0,
+ event = gst_event_new_newsegment (FALSE, 1.0,
GST_FORMAT_TIME, (gint64) rmdemux->segment_start,
(gint64) rmdemux->segment_stop, 0);
GST_LOG_OBJECT (rmdemux, "no more pads.");
gst_rmdemux_send_event (rmdemux,
- gst_event_new_newsegment (1.0, GST_FORMAT_TIME, (gint64) 0,
+ gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, (gint64) 0,
(gint64) - 1, 0));
}
gst_element_add_pad (GST_ELEMENT (rmdemux), stream->pad);
gst_pad_push_event (stream->pad,
- gst_event_new_newsegment (1.0, GST_FORMAT_TIME, (gint64) 0,
+ gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_TIME, (gint64) 0,
(gint64) - 1, 0));
/* If there's some extra data then send it as the first packet */