Commit 8cb186a6 authored by Wim Taymans's avatar Wim Taymans

ext/ffmpeg/gstffmpegdec.c: newsegment API update.

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_sink_event):
newsegment API update.
parent a2f57c7b
2005-10-11 Wim Taymans <wim@fluendo.com>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_sink_event):
newsegment API update.
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps):
......
common @ 615cf4d4
Subproject commit 7d175466d3319fe55327608ea1f7a20619ab5634
Subproject commit 615cf4d4506ef1ffb1f600c434fced1fa26b0f44
......@@ -935,7 +935,7 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
gdouble rate;
GstFormat fmt;
gst_event_parse_newsegment (event, &rate, &fmt, &start, &end, &base);
gst_event_parse_newsegment (event, NULL, &rate, &fmt, &start, &end, &base);
if (fmt == GST_FORMAT_TIME) {
ffmpegdec->next_ts = start;
GST_DEBUG_OBJECT (ffmpegdec, "Discont to time %" GST_TIME_FORMAT,
......@@ -950,7 +950,7 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
end,
GST_TIME_ARGS (end * GST_SECOND / ffmpegdec->context->bit_rate));
gst_event_unref (event);
event = gst_event_new_newsegment (rate, fmt,
event = gst_event_new_newsegment (FALSE, rate, fmt,
start * GST_SECOND / ffmpegdec->context->bit_rate,
end == -1 ? -1 : end * GST_SECOND / ffmpegdec->context->bit_rate,
base * GST_SECOND / ffmpegdec->context->bit_rate);
......
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