Commit 7d756621 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

ext/faad/gstfaad.c: newsegment API update

Original commit message from CVS:
* ext/faad/gstfaad.c: (gst_faad_event):
newsegment API update
parent c6b12603
2005-10-12 Tim-Philipp Müller <tim at centricular dot net>
* ext/faad/gstfaad.c: (gst_faad_event):
newsegment API update
2005-10-11 Wim Taymans <wim@fluendo.com>
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_header):
......
......@@ -629,10 +629,12 @@ gst_faad_event (GstPad * pad, GstEvent * event)
case GST_EVENT_NEWSEGMENT:
{
GstFormat fmt;
gboolean is_update;
gint64 start, end, base;
gdouble rate;
gst_event_parse_newsegment (event, &rate, &fmt, &start, &end, &base);
gst_event_parse_newsegment (event, &is_update, &rate, &fmt, &start,
&end, &base);
if (fmt == GST_FORMAT_TIME) {
GST_DEBUG ("Got NEWSEGMENT event in GST_FORMAT_TIME, passing on (%"
GST_TIME_FORMAT " - %" GST_TIME_FORMAT ")", GST_TIME_ARGS (start),
......@@ -656,8 +658,8 @@ gst_faad_event (GstPad * pad, GstEvent * event)
("no average bitrate yet, sending newsegment with start at 0");
}
new_ev =
gst_event_new_newsegment (rate, GST_FORMAT_TIME, new_start, new_end,
base);
gst_event_new_newsegment (is_update, rate, GST_FORMAT_TIME,
new_start, new_end, base);
gst_event_unref (event);
event = new_ev;
GST_DEBUG ("Sending new NEWSEGMENT event, time %" GST_TIME_FORMAT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment