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

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_sink_event):
newsegment API update.
This commit is contained in:
Wim Taymans 2005-10-11 16:38:08 +00:00
parent a2f57c7b3f
commit 8cb186a6d5
3 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
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):

2
common

@ -1 +1 @@
Subproject commit 7d175466d3319fe55327608ea1f7a20619ab5634
Subproject commit 615cf4d4506ef1ffb1f600c434fced1fa26b0f44

View file

@ -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);