mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
a2f57c7b3f
commit
8cb186a6d5
3 changed files with 8 additions and 3 deletions
|
@ -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>
|
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps):
|
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps):
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit 7d175466d3319fe55327608ea1f7a20619ab5634
|
Subproject commit 615cf4d4506ef1ffb1f600c434fced1fa26b0f44
|
|
@ -935,7 +935,7 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
|
||||||
gdouble rate;
|
gdouble rate;
|
||||||
GstFormat fmt;
|
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) {
|
if (fmt == GST_FORMAT_TIME) {
|
||||||
ffmpegdec->next_ts = start;
|
ffmpegdec->next_ts = start;
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "Discont to time %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (ffmpegdec, "Discont to time %" GST_TIME_FORMAT,
|
||||||
|
@ -950,7 +950,7 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
|
||||||
end,
|
end,
|
||||||
GST_TIME_ARGS (end * GST_SECOND / ffmpegdec->context->bit_rate));
|
GST_TIME_ARGS (end * GST_SECOND / ffmpegdec->context->bit_rate));
|
||||||
gst_event_unref (event);
|
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,
|
start * GST_SECOND / ffmpegdec->context->bit_rate,
|
||||||
end == -1 ? -1 : end * GST_SECOND / ffmpegdec->context->bit_rate,
|
end == -1 ? -1 : end * GST_SECOND / ffmpegdec->context->bit_rate,
|
||||||
base * GST_SECOND / ffmpegdec->context->bit_rate);
|
base * GST_SECOND / ffmpegdec->context->bit_rate);
|
||||||
|
|
Loading…
Reference in a new issue